Home
last modified time | relevance | path

Searched refs:tp_flags (Results 1 – 25 of 50) 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.c158 if (!(type->tp_flags & Py_TPFLAGS_READY)) { in _PyType_CheckConsistency()
166 CHECK(!(type->tp_flags & Py_TPFLAGS_READYING)); in _PyType_CheckConsistency()
300 type->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; in PyType_Modified()
357 type->tp_flags &= ~(Py_TPFLAGS_HAVE_VERSION_TAG| in type_mro_modified()
405 type->tp_flags |= Py_TPFLAGS_VALID_VERSION_TAG; in assign_version_tag()
414 {"__flags__", T_ULONG, offsetof(PyTypeObject, tp_flags), READONLY},
427 if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE)) { in check_set_special_type_attr()
463 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_name()
477 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_qualname()
543 if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) { in type_module()
[all …]
Dstructseq.c73 if (Py_TYPE(obj)->tp_flags & Py_TPFLAGS_HEAPTYPE) { in structseq_traverse()
414 type->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC; in PyStructSequence_InitType2()
Dpicklebufobject.c211 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
/external/python/pybind11/include/pybind11/detail/
Dclass.h80 type->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; in make_static_property_type()
257 type->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; in make_default_metaclass()
464 type->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; in make_object_base_type()
523 type->tp_flags |= Py_TPFLAGS_HAVE_GC; in enable_dynamic_attributes()
588 heap_type->ht_type.tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; in enable_buffer_protocol()
674 type->tp_flags |= Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE; in make_new_python_type()
676 type->tp_flags |= Py_TPFLAGS_CHECKTYPES; in make_new_python_type()
679 type->tp_flags |= Py_TPFLAGS_BASETYPE; in make_new_python_type()
/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/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,
/external/python/cpython3/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:
/external/python/cpython2/Doc/includes/
Dtypestruct.h33 long tp_flags; member
/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/cpython3/Include/internal/
Dpycore_object.h102 return ((type->tp_flags & feature) != 0); in _PyType_HasFeature()
/external/python/cpython3/Python/
Dcontext.c698 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1049 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1190 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1246 .tp_flags = Py_TPFLAGS_DEFAULT,
Dhamt.c2623 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, \
2921 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2941 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2954 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2967 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
/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.
200 Type flags, used to set :c:member:`PyTypeObject.tp_flags`.
/external/python/cpython2/Include/
Dobject.h356 long tp_flags; member
659 #define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0)
/external/tensorflow/tensorflow/python/util/
Dfast_module_type.cc235 obj.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE; in __anona71ec8820102()
/external/python/cpython3/Modules/
D_asynciomodule.c1536 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
1731 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1849 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
1938 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
2538 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
3271 .tp_flags = Py_TPFLAGS_DEFAULT,
D_testcapimodule.c3641 tp->tp_flags -= Py_TPFLAGS_HAVE_GC; in without_gc()
6078 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6114 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6175 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
6183 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6189 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6215 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_VECTORCALL,
6641 .tp_flags = Py_TPFLAGS_DEFAULT,
6663 .tp_flags = Py_TPFLAGS_DEFAULT,
6685 .tp_flags = Py_TPFLAGS_DEFAULT,
[all …]
/external/python/cpython3/Misc/NEWS.d/
D3.9.0b5.rst228 :c:member:`PyTypeObject.tp_flags` member when the limited C API is not used,
/external/python/cpython3/Include/cpython/
Dobject.h226 unsigned long tp_flags; member

12