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

2012-09-03 Thread Varun Masuraha
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

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

2012-09-02 Thread Varun Masuraha
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

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

2012-09-02 Thread Varun Masuraha
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