Skip to content
Next Next commit
Add comemnt for Py_TPFLAGS_PREHEADER
  • Loading branch information
sergey-miryanov committed Jun 23, 2025
commit 0eb59b3c62e9b1c2776ac387943eff0bb09d4271
3 changes: 3 additions & 0 deletions Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,9 @@ given type object has a specified feature.
*/
#define Py_TPFLAGS_MANAGED_DICT (1 << 4)

/* Type has dictionary or weakref pointers that are managed by VM and has
* to allocate space to store these.
*/
#define Py_TPFLAGS_PREHEADER (Py_TPFLAGS_MANAGED_WEAKREF | Py_TPFLAGS_MANAGED_DICT)

/* Set if instances of the type object are treated as sequences for pattern matching */
Expand Down
Loading