[issue6468] __missing__ not completely implemented in dictobject.c
Bosko Vukov
report at bugs.python.org
Sun Jul 12 18:50:50 CEST 2009
New submission from Bosko Vukov <bvukov at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6468>
_______________________________________
More information about the Python-bugs-list
mailing list