[issue6468] __missing__ not completely implemented in dictobject.c

2009-07-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, this is intended. PyDict_GetItem already bypasses user __getitem__ methods, so it's logical it would do the same for __missing__. -- nosy: +benjamin.peterson resolution: -> wont fix status: open -> closed __

[issue6468] __missing__ not completely implemented in dictobject.c

2009-07-12 Thread Bosko Vukov
New submission from Bosko Vukov : 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 afterwar