[Python-ideas] Non-boolean return from __contains__

Oleg Broytman phd at phd.pp.ru
Sun Jul 25 23:59:12 CEST 2010

On Sun, Jul 25, 2010 at 10:36:34PM +0100, Michael Foord wrote:
> > in-place operations should return None.
> What do you mean by "in-place operations should return None"?

   list.sort() sorts in place and returns None.

     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 mailing list