some random reflections of a "Python newbie": (2) language issues
Tim Peters
tim_one at email.msn.com
Fri Dec 10 03:48:46 EST 1999
[some moron posing as me]
> "if a in X:" currently works only if X is a list, tuple or string. In
> Python 1.6 it's supposed to work too if X is an instance of a class that
> supports the special __contains__ method; see the 1.6 docs,
> preferably after they're written <wink>.
You can tell that wasn't me because the first claim is wrong! I expect I
wrote the rest of it, though.
sometimes-infallibility-has-to-be-taken-on-faith-ly y'rs - tim
More information about the Python-list
mailing list