2.2 features

Guido van Rossum guido at python.org
Wed Aug 1 05:52:23 CEST 2001


Paul Prescod <paulp at ActiveState.com> writes:

> It sounds weird from an English perspective to me. "If Guido in
> programmer and Guido in author then". "isa" or even just "a" makes more
> sense. or how about "in class" "If Guido in class programmer and Guido
> in class author then".

Sorry, this isn't worth adding new syntax.  The 'in' thing worked
because a in b is already mapped to b.__contains__(a).

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list