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 <rep...@bugs.python.org> <http://bugs.python.org/issue16991> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com