Varun Masuraha added the comment:
Hey Martin,
I think I got the point.
Meanwhile I created my own myCount() for my problem ;-)
Thanks.
--
___
Python tracker
<http://bugs.python.org/issue15
Varun Masuraha added the comment:
Thanks Alex for the reply,
Although Booleans & Integers may not be very practical in same list (or tuple,
etc.) & the fact that bool is subclass of int, still I feel that the search
implementation (count, index, etc.) is too simple in that matter.
C
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