[Python-ideas] Non-boolean return from __contains__
phd at phd.pp.ru
Mon Jul 26 16:53:31 CEST 2010
On Mon, Jul 26, 2010 at 07:28:30AM -0700, Guido van Rossum wrote:
> other odd ducks are 'and' and 'or', though in a pinch one can use '&'
> and '|' for those. I forget in which camp 'not' falls.
'not' is like 'and' and 'or'. '~' is like '&' and '|'; its magic method
I maintain a similar all-magic-methods-overridden class, just for a
different ORM (SQLObject), so I am greatly interested in the discussion.
Oleg Broytman http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas