Skip to content

Commit 0eb59b3

Browse files
Add comemnt for Py_TPFLAGS_PREHEADER
1 parent b57b619 commit 0eb59b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Include/object.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ given type object has a specified feature.
534534
*/
535535
#define Py_TPFLAGS_MANAGED_DICT (1 << 4)
536536

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

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

0 commit comments

Comments
 (0)