Message193010
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. |
|
Date |
User |
Action |
Args |
2013-07-13 10:52:37 | Olivier.Gagnon | set | recipients:
+ Olivier.Gagnon, rhettinger, eric.snow, serhiy.storchaka, madison.may, vajrasky |
2013-07-13 10:52:37 | Olivier.Gagnon | set | messageid: <1373712757.62.0.258510071031.issue18352@psf.upfronthosting.co.za> |
2013-07-13 10:52:37 | Olivier.Gagnon | link | issue18352 messages |
2013-07-13 10:52:37 | Olivier.Gagnon | create | |
|