This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Olivier.Gagnon
Recipients Olivier.Gagnon, eric.snow, madison.may, rhettinger, serhiy.storchaka, vajrasky
Date 2013-07-13.10:52:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373712757.62.0.258510071031.issue18352@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-07-13 10:52:37Olivier.Gagnonsetrecipients: + Olivier.Gagnon, rhettinger, eric.snow, serhiy.storchaka, madison.may, vajrasky
2013-07-13 10:52:37Olivier.Gagnonsetmessageid: <1373712757.62.0.258510071031.issue18352@psf.upfronthosting.co.za>
2013-07-13 10:52:37Olivier.Gagnonlinkissue18352 messages
2013-07-13 10:52:37Olivier.Gagnoncreate