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 bvukov
Recipients bvukov
Date 2009-07-12.16:50:45
SpamBayes Score 3.420562e-07
Marked as misclassified No
Message-id <1247417450.47.0.16848043509.issue6468@psf.upfronthosting.co.za>
In-reply-to
Content
For some reason functions PyDict_GetItem ( and PyDict_GetItemString )
don't try to check for '__missing__' on subclass, but
dict_subscript(dictobject *mp, register PyObject *key) does.
Only in this function a failure to get a value using
ma_lookup checks afterwards using !PyDict_CheckExact for subclass
definition of '__missing__', and then returns a value.
Is this intended or just a half implementation ?
History
Date User Action Args
2009-07-12 16:50:50bvukovsetrecipients: + bvukov
2009-07-12 16:50:50bvukovsetmessageid: <1247417450.47.0.16848043509.issue6468@psf.upfronthosting.co.za>
2009-07-12 16:50:48bvukovlinkissue6468 messages
2009-07-12 16:50:47bvukovcreate