there's really only one language feature in python that's too new to use at work that i'm hurting for

i just want Enum.__contains__ to work but it was fucked up and weird before 3.12

@monorail to be fair a lot of dunderscore shit is fucked up and weird in python (i love dunderscore python shit)

@wallhackio well, i say i want __contains__ to work but really i want in to work. that's just how it's implemented

Follow

@monorail I actually don't know any specifics about what __contains__ does so I don't know what this means

@wallhackio in python in general. that's what in "always" does (with the usual caveats about stuff that's defined in C rather than raw python, etc)

for some reason, before 3.12, Enum__contains__ raises a ValueError if a non-enum-member is passed in

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.