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 jjposner
Recipients docs@python, jjposner, r.david.murray, rhettinger
Date 2010-08-08.14:40:23
SpamBayes Score 6.4556094e-05
Marked as misclassified No
Message-id <1281278424.81.0.0347871045638.issue9536@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-08-08 14:40:24jjposnersetrecipients: + jjposner, rhettinger, r.david.murray, docs@python
2010-08-08 14:40:24jjposnersetmessageid: <1281278424.81.0.0347871045638.issue9536@psf.upfronthosting.co.za>
2010-08-08 14:40:23jjposnerlinkissue9536 messages
2010-08-08 14:40:23jjposnercreate