Serhiy Storchaka added the comment: Additional check is not for free.
$ ./python -m timeit -s "from collections import Counter; a = Counter(); b = Counter(range(10))" -- "a &= b" Unpatched: 100000 loops, best of 3: 8.4 usec per loop Patched: 100000 loops, best of 3: 9.7 usec per loop ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22801> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com