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 gvanrossum
Recipients
Date 2006-02-23.21:18:08
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=6380

Michael Chermside had a good point -- the hook should be
called __missing__ (he suggested __on_missing__ but I think
__missing__ is fine).

Here's a new patch, which also implements and documents and
tests the change that I earlier agreed to on python-dev:
dict doesn't define on_missing (__missing__) but just checks
for it -- if a subclass doesn't define it, the default
behavior applies.

__missing__ must be implemented as a method -- it can't be
an instance variable. 
History
Date User Action Args
2007-08-23 15:45:50adminlinkissue1433928 messages
2007-08-23 15:45:50admincreate