Olivier Gagnon added the comment:

Yes I do have code that break because of this behaviour. I'm doing evolutionary 
algorithm using a framework called DEAP. This framework creates a type called 
individual at the runtime by subclassing a container and adding it a fitness 
attribute. Those individual are copied as not to modify every indivual when we 
work on a single one. AFAIK the only container that can't be used right now is 
the counter because the fitness is not copied. I'm sure I can come up with a 
hack to have this behaviour, but it does clash with other standard container 
type and there is no mention anywhere that the Counter should be different than 
every other container type in the python standard library.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18352>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to