some random reflections of a "Python newbie": (2) language issues
Fred L. Drake, Jr.
fdrake at acm.org
Fri Dec 10 10:46:36 EST 1999
Tim Peters writes:
> "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>.
Send me a doc patch, and maybe we can tell Guido he has to implement
it because that's how it's documented. ;-)
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
Corporation for National Research Initiatives
More information about the Python-list
mailing list