Message192936
I can understand that the current behaviour can be correct in regard with the added attributes of the object. However, should I open a new issue for the following inheritance behaviour which the reduce function affects also.
class myCounter(Counter):
def __init__(self, bar, *args):
self.foo = bar
super().__init__(*args)
class myDict(dict):
def __init__(self, bar, *args):
self.foo = bar
super().__init__(*args)
c = myCounter("bar")
l = myDict("bar")
print(c.foo) # prints bar
print(l.foo) # prints bar
cc = copy.copy(c)
ll = copy.copy(l)
print(cc.foo) # prints {}
print(ll.foo) # prints bar |
|
Date |
User |
Action |
Args |
2013-07-12 12:29:28 | Olivier.Gagnon | set | recipients:
+ Olivier.Gagnon, rhettinger, eric.snow, serhiy.storchaka, madison.may, vajrasky |
2013-07-12 12:29:28 | Olivier.Gagnon | set | messageid: <1373632168.22.0.554052834365.issue18352@psf.upfronthosting.co.za> |
2013-07-12 12:29:28 | Olivier.Gagnon | link | issue18352 messages |
2013-07-12 12:29:28 | Olivier.Gagnon | create | |
|