New submission from Bosko Vukov <bvu...@users.sourceforge.net>: 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 ?
---------- components: None messages: 90450 nosy: bvukov severity: normal status: open title: __missing__ not completely implemented in dictobject.c type: behavior versions: Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6468> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com