Status of PEP's?

James_Althoff at i2.com James_Althoff at i2.com
Tue Mar 5 16:06:48 EST 2002


[Aahz Maruch]
> Yes, particularly when I repeat myself and use this example:
>
>    if i in 5:
>
> <shudder>

I will note once again that Aahz shudders at the thought.

And note again also, that (the equivalent of)

    def __contains__(self,x):
        raise TypeError

could be added to class int if the anguish proved to be insurmountable <0.1
wink>.

Jim





More information about the Python-list mailing list