pycore_descrobject.h 499 B

1234567891011121314151617181920212223242526
  1. #ifndef Py_INTERNAL_DESCROBJECT_H
  2. #define Py_INTERNAL_DESCROBJECT_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ifndef Py_BUILD_CORE
  7. # error "this header requires Py_BUILD_CORE define"
  8. #endif
  9. typedef struct {
  10. PyObject_HEAD
  11. PyObject *prop_get;
  12. PyObject *prop_set;
  13. PyObject *prop_del;
  14. PyObject *prop_doc;
  15. PyObject *prop_name;
  16. int getter_doc;
  17. } propertyobject;
  18. typedef propertyobject _PyPropertyObject;
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* !Py_INTERNAL_DESCROBJECT_H */