not in

Jason Orendorff jason at jorendorff.com
Mon Jan 21 21:32:28 EST 2002


Hans Novak writes:
> I'm going to write a PEP for this soon, so people can
> finally define their own assignment operator, starting
> in 2.3! I hear Guido likes the idea, and wants to adopt
> this behavior for <= for all built-in objects.

Additionally, Python 2.3 will have the "is not in" operator,
which will tell you when an object is on its lunch break:

    if jason is not in:
        in_box.insert(1, message)

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list