◐ Shell
clean mode source ↗

Message 244047 - Python tracker

> 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.