[issue18352] collections.Counter with added attributes are not deepcopied properly.

Raymond Hettinger report at bugs.python.org
Sat Jul 13 06:23:27 CEST 2013


Raymond Hettinger added the comment:

Do you guys have any actual motivating use cases or real code that won't work because of the present design?   Consistency arguments are somewhat weak and don't necessarily warrant an API change.   

AFAICT, there is no use for counters going out of their way to save attributes.  Like many classes and types in Python, a subclasser is responsible for adding extra behavior if needed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18352>
_______________________________________


More information about the Python-bugs-list mailing list