Home
last modified time | relevance | path

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

/third_party/python/Modules/
D_abc.c421 #define COLLECTION_FLAGS (Py_TPFLAGS_SEQUENCE | Py_TPFLAGS_MAPPING) macro
470 if ((val & COLLECTION_FLAGS) == COLLECTION_FLAGS) { in _abc__abc_init()
474 ((PyTypeObject *)self)->tp_flags |= (val & COLLECTION_FLAGS); in _abc__abc_init()
489 (child->tp_flags & COLLECTION_FLAGS) == flag) in set_collection_flag_recursive()
493 child->tp_flags &= ~COLLECTION_FLAGS; in set_collection_flag_recursive()
562 unsigned long collection_flag = ((PyTypeObject *)self)->tp_flags & COLLECTION_FLAGS; in _abc__abc_register_impl()
/third_party/python/Objects/
Dtypeobject.c5954 #define COLLECTION_FLAGS (Py_TPFLAGS_SEQUENCE | Py_TPFLAGS_MAPPING) macro
5975 _PyObject_ASSERT((PyObject *)type, (type->tp_flags & COLLECTION_FLAGS) != COLLECTION_FLAGS); in type_ready_checks()
6173 if ((type->tp_flags & COLLECTION_FLAGS) == 0) { in inherit_patma_flags()
6174 type->tp_flags |= base->tp_flags & COLLECTION_FLAGS; in inherit_patma_flags()