Raymond Hettinger added the comment: Attaching a patch for the slow path. Makes the code exactly match the pure python version. This kicks in whether someone has subclassed Counter and overridden either __getitem__ or __setitem__.
---------- Added file: http://bugs.python.org/file31932/fix_counter2.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18594> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com