Unexpected behaviour from the 'in' operator
Rene Pijlman
reageer.in at de.nieuwsgroep
Mon Feb 24 04:59:32 EST 2003
Andrew Bennetts:
[testing for identity instead of equality]
>On the other hand, it could be genuinely useful if the objects
>had very slow equality operators...
If this is true I guess the equality operator could be optimized
to first check for identity, and only test non-identical objects
for equality.
--
René Pijlman
Wat wil jij leren? http://www.leren.nl
More information about the Python-list
mailing list