[Python-ideas] Non-boolean return from __contains__

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jul 27 09:28:35 CEST 2010


Ian Bicking wrote:
> So if 
> there was anything like __and__ and __or__ it would have to simply 
> disable any short-circuiting.

Not true -- in PEP 335 I showed how it can be done without
giving up any short-circuiting possibilities.

-- 
Greg



More information about the Python-ideas mailing list