Message113269
I think it would be confusing to create of subclass of defaultdict, defining a __missing__ method in that subclass. The existence of the __missing__ method would cancel the main functionality of the defaultdict object: invoking the "default value factory" callable.
I think it would be better to encourage programmers to subclass dict directly, instead of subclassing defaultdict. |
|
Date |
User |
Action |
Args |
2010-08-08 14:40:24 | jjposner | set | recipients:
+ jjposner, rhettinger, r.david.murray, docs@python |
2010-08-08 14:40:24 | jjposner | set | messageid: <1281278424.81.0.0347871045638.issue9536@psf.upfronthosting.co.za> |
2010-08-08 14:40:23 | jjposner | link | issue9536 messages |
2010-08-08 14:40:23 | jjposner | create | |
|