Home
last modified time | relevance | path

Searched refs:tp_flags (Results 1 – 25 of 45) sorted by relevance

12

/third_party/python/Objects/
Dtypeobject.c155 if (!(type->tp_flags & Py_TPFLAGS_READY)) { in _PyType_CheckConsistency()
163 CHECK(!(type->tp_flags & Py_TPFLAGS_READYING)); in _PyType_CheckConsistency()
166 if (type->tp_flags & Py_TPFLAGS_DISALLOW_INSTANTIATION) { in _PyType_CheckConsistency()
351 type->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; in PyType_Modified()
405 type->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; in type_mro_modified()
442 type->tp_flags |= Py_TPFLAGS_VALID_VERSION_TAG; in assign_version_tag()
450 {"__flags__", T_ULONG, offsetof(PyTypeObject, tp_flags), READONLY},
501 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_name()
515 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_qualname()
581 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_module()
[all …]
Dstructseq.c95 if (Py_TYPE(obj)->tp_flags & Py_TPFLAGS_HEAPTYPE) { in structseq_traverse()
466 unsigned long tp_flags) in _PyStructSequence_InitType() argument
494 type->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | tp_flags; in _PyStructSequence_InitType()
Dpicklebufobject.c211 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
Dunionobject.c457 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
/third_party/python/Modules/
D_abc.c474 ((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()
494 child->tp_flags |= flag; in set_collection_flag_recursive()
562 unsigned long collection_flag = ((PyTypeObject *)self)->tp_flags & COLLECTION_FLAGS; in _abc__abc_register_impl()
D_asynciomodule.c1539 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
1767 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1885 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2496 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
3255 .tp_flags = Py_TPFLAGS_DEFAULT,
D_testcapimodule.c3789 tp->tp_flags -= Py_TPFLAGS_HAVE_GC; in without_gc()
6423 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6459 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6520 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
6528 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6534 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6560 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_VECTORCALL,
7035 .tp_flags = Py_TPFLAGS_DEFAULT,
7057 .tp_flags = Py_TPFLAGS_DEFAULT,
7079 .tp_flags = Py_TPFLAGS_DEFAULT,
[all …]
/third_party/python/Tools/gdb/
Dlibpython.py354 tp_flags = int(t.field('tp_flags'))
377 if tp_flags & Py_TPFLAGS_HEAPTYPE:
380 if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
382 if tp_flags & Py_TPFLAGS_LIST_SUBCLASS:
384 if tp_flags & Py_TPFLAGS_TUPLE_SUBCLASS:
386 if tp_flags & Py_TPFLAGS_BYTES_SUBCLASS:
388 if tp_flags & Py_TPFLAGS_UNICODE_SUBCLASS:
390 if tp_flags & Py_TPFLAGS_DICT_SUBCLASS:
392 if tp_flags & Py_TPFLAGS_BASE_EXC_SUBCLASS:
/third_party/python/Include/internal/
Dpycore_structseq.h15 unsigned long tp_flags);
Dpycore_object.h27 return ((type->tp_flags & feature) != 0); in _PyType_HasFeature()
/third_party/python/Doc/includes/
Dcustom.c15 .tp_flags = Py_TPFLAGS_DEFAULT,
Dtypestruct.h34 unsigned long tp_flags; member
Dsublist.c37 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Dcustom2.c104 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Dcustom3.c154 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Dcustom4.c166 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
/third_party/python/Python/
Dcontext.c714 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1065 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1206 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1262 .tp_flags = Py_TPFLAGS_DEFAULT,
Dhamt.c2604 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, \
2902 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2922 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2935 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2948 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
/third_party/python/Doc/c-api/
Dtype.rst42 Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This function is primarily
45 :c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API.
217 Type flags, used to set :c:member:`PyTypeObject.tp_flags`.
Dgcsupport.rst15 To create a container type, the :c:member:`~PyTypeObject.tp_flags` field of the type object must
52 :c:member:`~PyTypeObject.tp_flags`, :c:member:`~PyTypeObject.tp_traverse`
/third_party/protobuf/python/google/protobuf/pyext/
Dmap_container.cc520 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in ScalarMapDealloc()
786 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in MessageMapDealloc()
/third_party/python/Include/cpython/
Dobject.h224 unsigned long tp_flags; member
/third_party/python/Include/
Dobject.h729 flags = type->tp_flags; in PyType_HasFeature()
/third_party/alsa-lib/modules/mixer/simple/
Dpython.c710 tp_flags: Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
891 tp_flags: Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
/third_party/python/Doc/extending/
Dnewtypes_tutorial.rst96 .tp_flags = Py_TPFLAGS_DEFAULT,
156 .tp_flags = Py_TPFLAGS_DEFAULT,
520 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
786 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,

12