@monorail I actually don't know any specifics about what __contains__
does so I don't know what this means
@wallhackio when you write a in b
, what that "really" means is b.__contains__(a)
@monorail in 3.12?
@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
@monorail i love python
@wallhackio me too :3
@wallhackio well, i say i want
__contains__
to work but really i wantin
to work. that's just how it's implemented