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

Serhiy Storchaka report at bugs.python.org
Wed Jul 3 17:58:51 CEST 2013


Serhiy Storchaka added the comment:

Here is a preliminary patch. It changes copying and pickling to preserve instance attributes. Actually I'm not sure which attributes should be copied.

I doubt -- should this be considered as a fix or as a new feature?

Perhaps OrderedDict should be changed in same way.

----------
keywords: +patch
nosy: +rhettinger, serhiy.storchaka
stage:  -> patch review
versions: +Python 3.4 -Python 3.3
Added file: http://bugs.python.org/file30759/counter_copy_attrs.patch

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


More information about the Python-bugs-list mailing list