Home
last modified time | relevance | path

Searched refs:COLLECTION_FLAGS (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Modules/
H A D_abc.c418 #define COLLECTION_FLAGS (Py_TPFLAGS_SEQUENCE | Py_TPFLAGS_MAPPING) macro
449 /* If __abc_tpflags__ & COLLECTION_FLAGS is set, then set the corresponding bit(s) in _abc__abc_init()
468 if ((val & COLLECTION_FLAGS) == COLLECTION_FLAGS) { in _abc__abc_init()
472 ((PyTypeObject *)self)->tp_flags |= (val & COLLECTION_FLAGS); in _abc__abc_init()
487 (child->tp_flags & COLLECTION_FLAGS) == flag) in set_collection_flag_recursive()
492 child->tp_flags &= ~COLLECTION_FLAGS; in set_collection_flag_recursive()
559 unsigned long collection_flag = ((PyTypeObject *)self)->tp_flags & COLLECTION_FLAGS; in _abc__abc_register_impl()
/third_party/python/Objects/
H A Dtypeobject.c6050 #define COLLECTION_FLAGS (Py_TPFLAGS_SEQUENCE | Py_TPFLAGS_MAPPING) macro
6071 _PyObject_ASSERT((PyObject *)type, (type->tp_flags & COLLECTION_FLAGS) != COLLECTION_FLAGS); in type_ready_pre_checks()
6269 if ((type->tp_flags & COLLECTION_FLAGS) == 0) { in inherit_patma_flags()
6270 type->tp_flags |= base->tp_flags & COLLECTION_FLAGS; in inherit_patma_flags()

Completed in 14 milliseconds