[Python-ideas] Non-boolean return from __contains__

Michael Foord fuzzyman at voidspace.org.uk
Mon Jul 26 00:34:23 CEST 2010


On 25 July 2010 22:59, Oleg Broytman <phd at phd.pp.ru> wrote:

> 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.
>
>
Ah thanks, although I don't think this is analogous at all.

Michael



> Oleg.
> --
>     Oleg Broytman            http://phd.pp.ru/            phd at phd.pp.ru
>           Programmers don't die, they just GOSUB without RETURN.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
http://www.voidspace.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20100725/8e43a848/attachment.html>


More information about the Python-ideas mailing list