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

Varun Masuraha report at bugs.python.org
Sun Sep 2 18:25:55 CEST 2012


New submission from Varun Masuraha:

setup:
>>>myList=[1,True,'blah blah']
>>>print(myList.count(1))

Actual result:
2

Expected:
1

----------
messages: 169707
nosy: varun_masuraha
priority: normal
severity: normal
status: open
title: list.count() results wrong if both booleans & 1's/0's are present in the list
type: behavior
versions: Python 3.2

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


More information about the New-bugs-announce mailing list