[issue16991] Add OrderedDict written in C

Eric Snow report at bugs.python.org
Mon May 25 20:53:53 CEST 2015


Eric Snow added the comment:

> Should dictobject.h get a bit more changes?  In particular, should the following be expanded?
>
> #define PyDictKeys_Check(op) (Py_TYPE(op) == &PyDictKeys_Type)
> #define PyDictItems_Check(op) (Py_TYPE(op) == &PyDictItems_Type)
> #define PyDictValues_Check(op) (Py_TYPE(op) == &PyDictValues_Type)
> /* This excludes Values, since they are not sets. */
> # define PyDictViewSet_Check(op) \
>     (PyDictKeys_Check(op) || PyDictItems_Check(op))

I'm missing some context here.  I'm not sure how this relates to OrderedDict.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16991>
_______________________________________


More information about the Python-bugs-list mailing list