Home
last modified time | relevance | path

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

12

/external/python/cpython2/Objects/
Dtypeobject.c113 type->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; in PyType_Modified()
158 type->tp_flags &= ~(Py_TPFLAGS_HAVE_VERSION_TAG| in type_mro_modified()
205 type->tp_flags |= Py_TPFLAGS_VALID_VERSION_TAG; in assign_version_tag()
213 {"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
228 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_name()
250 if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE)) { in type_set_name()
294 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_module()
315 if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE)) { in type_set_module()
372 type->tp_flags |= Py_TPFLAGS_IS_ABSTRACT; in type_set_abstractmethods()
374 type->tp_flags &= ~Py_TPFLAGS_IS_ABSTRACT; in type_set_abstractmethods()
[all …]
/external/python/cpython3/Objects/
Dtypeobject.c137 if (!(type->tp_flags & Py_TPFLAGS_READY)) { in _PyType_CheckConsistency()
142 assert(!(type->tp_flags & Py_TPFLAGS_READYING)); in _PyType_CheckConsistency()
272 type->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; in PyType_Modified()
311 type->tp_flags &= ~(Py_TPFLAGS_HAVE_VERSION_TAG| in type_mro_modified()
358 type->tp_flags |= Py_TPFLAGS_VALID_VERSION_TAG; in assign_version_tag()
366 {"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
379 if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE)) { in check_set_special_type_attr()
408 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_name()
422 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_qualname()
488 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_module()
[all …]
/external/python/cpython2/Tools/gdb/
Dlibpython.py323 tp_flags = int(t.field('tp_flags'))
347 if tp_flags & Py_TPFLAGS_HEAPTYPE:
350 if tp_flags & Py_TPFLAGS_INT_SUBCLASS:
352 if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
354 if tp_flags & Py_TPFLAGS_LIST_SUBCLASS:
356 if tp_flags & Py_TPFLAGS_TUPLE_SUBCLASS:
358 if tp_flags & Py_TPFLAGS_STRING_SUBCLASS:
360 if tp_flags & Py_TPFLAGS_UNICODE_SUBCLASS:
362 if tp_flags & Py_TPFLAGS_DICT_SUBCLASS:
364 if tp_flags & Py_TPFLAGS_BASE_EXC_SUBCLASS:
/external/python/cpython3/Tools/gdb/
Dlibpython.py352 tp_flags = int(t.field('tp_flags'))
375 if tp_flags & Py_TPFLAGS_HEAPTYPE:
378 if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
380 if tp_flags & Py_TPFLAGS_LIST_SUBCLASS:
382 if tp_flags & Py_TPFLAGS_TUPLE_SUBCLASS:
384 if tp_flags & Py_TPFLAGS_BYTES_SUBCLASS:
386 if tp_flags & Py_TPFLAGS_UNICODE_SUBCLASS:
388 if tp_flags & Py_TPFLAGS_DICT_SUBCLASS:
390 if tp_flags & Py_TPFLAGS_BASE_EXC_SUBCLASS:
/external/python/cpython3/Doc/includes/
Dcustom.c14 .tp_flags = Py_TPFLAGS_DEFAULT,
Dsublist.c36 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Dtypestruct.h34 unsigned long tp_flags; member
Dcustom2.c103 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Dcustom3.c153 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Dcustom4.c165 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
/external/python/cpython2/Tools/bgen/bgen/
DbgenObjectDefinition.py7 tp_flags = "Py_TPFLAGS_DEFAULT" variable in ObjectDefinition
300 Output("%s, /* tp_flags */", self.tp_flags)
371 tp_flags = "Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE" variable in PEP253Mixin
/external/python/cpython2/Doc/includes/
Dtypestruct.h33 long tp_flags; member
/external/python/cpython3/Doc/c-api/
Dtype.rst40 Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This function is primarily
43 :c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API.
Dgcsupport.rst15 To create a container type, the :c:member:`~PyTypeObject.tp_flags` field of the type object must
Dtypeobj.rst380 .. c:member:: unsigned long PyTypeObject.tp_flags
402 the ``|`` operator to form the value of the :c:member:`~PyTypeObject.tp_flags` field. The macro
404 checks whether ``tp->tp_flags & f`` is non-zero.
467 from built-ins should have their :c:member:`~PyTypeObject.tp_flags`
955 … :c:member:`~PyTypeObject.tp_flags` field, and check the :const:`Py_TPFLAGS_HAVE_GC` flag bit. But
/external/python/cpython3/Python/
Dcontext.c667 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1004 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1138 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1194 .tp_flags = Py_TPFLAGS_DEFAULT,
Dhamt.c2622 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, \
2920 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2940 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2953 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2966 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
/external/python/cpython2/Include/
Dobject.h356 long tp_flags; member
659 #define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0)
/external/python/cpython3/Include/
Dobject.h379 unsigned long tp_flags; member
685 #define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0)
/external/python/cpython3/Modules/
D_asynciomodule.c1443 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE
1639 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1757 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1831 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2417 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE
3164 .tp_flags = Py_TPFLAGS_DEFAULT,
D_abc.c73 .tp_flags = Py_TPFLAGS_DEFAULT,
/external/python/cpython2/Doc/c-api/
Dgcsupport.rst18 To create a container type, the :c:member:`~PyTypeObject.tp_flags` field of the type object must
Dtypeobj.rst417 .. c:member:: long PyTypeObject.tp_flags
440 the ``|`` operator to form the value of the :c:member:`~PyTypeObject.tp_flags` field. The macro
442 checks whether ``tp->tp_flags & f`` is non-zero.
1052 … :c:member:`~PyTypeObject.tp_flags` field, and check the :const:`Py_TPFLAGS_HAVE_GC` flag bit. But
1353 :const:`Py_TPFLAGS_DEFAULT` for the value of the :c:member:`~PyTypeObject.tp_flags` member rather
1383 flag is present in the :c:member:`~PyTypeObject.tp_flags` field of the object's
/external/python/cpython2/Misc/NEWS.d/
D2.6b3.rst10 Py_TPFLAGS_HAVE_VERSION_TAG to their tp_flags field if they care. This is a
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst154 .tp_flags = Py_TPFLAGS_DEFAULT,
513 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
779 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,

12