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 <rep...@bugs.python.org> <http://bugs.python.org/issue15850> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com