dictobject.h 459 B

1234567891011121314151617181920212223
  1. /* dict object interface */
  2. #ifndef Py_DICTOBJECT_H
  3. #define Py_DICTOBJECT_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct {
  8. PyObject_HEAD
  9. PyObject *_tmpkeys; /* a private place to put keys during PyDict_Next */
  10. } PyDictObject;
  11. #define PyDict_Check(op) \
  12. PyType_FastSubclass((op)->ob_type, Py_TPFLAGS_DICT_SUBCLASS)
  13. #define PyDict_CheckExact(op) ((op)->ob_type == &PyDict_Type)
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif /* !Py_DICTOBJECT_H */