[Python-Dev] obj.__contains__() returns 1/0...
gminick at hacker.pl
Thu Oct 9 01:41:16 EDT 2003
On Wed, Oct 08, 2003 at 09:42:18PM +0200, gminick wrote:
> ...shouldn't it return True/False?
> The reason for asking is that i.e. obj.__eq__() returns True/False,
> and besides True/False looks nicer than 1/0 ;>
> ps. I'll send a patch to sf.net in a matter of minutes.
> Please, decide if it should be applied, thanks.
Ok, no need to discuss:
Category: Core (C code)
Group: Python 2.3
Submitted By: Wojtek Walczak (gminick)
Assigned to: Nobody/Anonymous (nobody)
Summary: obj.__contains__() returns 1/0...
[ Wojtek Walczak - gminick (at) underground.org.pl ]
[ <http://gminick.linuxsecurity.pl/> ]
[ "...rozmaite zwroty, matowe od patyny dawnosci." ]
More information about the Python-Dev