Raymond Hettinger <[email protected]> added the comment:
One nuance, it may be better to implement as:
a_cnt = collections.Counter(iter(a))
b_cnt = collections.Counter(iter(b))
That will bypass the special handling the Counter constructor has if the
argument is a Mapping.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10242>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com