[issue15850] list.count() results wrong if both booleans & 1's/0's are present in the list

Alex Gaynor report at bugs.python.org
Sun Sep 2 18:30:43 CEST 2012


Alex Gaynor added the comment:

list.count() uses == to compare items, 1 and True compare equal, so this behavior is correct.

----------
nosy: +alex
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15850>
_______________________________________


More information about the Python-bugs-list mailing list