Home
last modified time | relevance | path

Searched refs:tp_alloc (Results 1 – 25 of 125) sorted by relevance

12345

/external/python/cpython2/Modules/
Ditertoolsmodule.c35 gbo = (groupbyobject *)type->tp_alloc(type, 0); in groupby_new()
710 lz = (cycleobject *)type->tp_alloc(type, 0); in cycle_new()
855 lz = (dropwhileobject *)type->tp_alloc(type, 0); in dropwhile_new()
999 lz = (takewhileobject *)type->tp_alloc(type, 0); in takewhile_new()
1189 lz = (isliceobject *)type->tp_alloc(type, 0); in islice_new()
1341 lz = (starmapobject *)type->tp_alloc(type, 0); in starmap_new()
1485 lz = (imapobject *)type->tp_alloc(type, 0); in imap_new()
1637 lz = (chainobject *)type->tp_alloc(type, 0); in chain_new_internal()
1870 lz = (productobject *)type->tp_alloc(type, 0); in product_new()
2101 co = (combinationsobject *)type->tp_alloc(type, 0); in combinations_new()
[all …]
/external/python/cpython3/Objects/
Dnamespaceobject.c26 assert(type != NULL && type->tp_alloc != NULL); in namespace_new()
27 self = type->tp_alloc(type, 0); in namespace_new()
Dfileobject.c317 assert(type != NULL && type->tp_alloc != NULL); in stdprinter_new()
319 self = (PyStdPrinter_Object *) type->tp_alloc(type, 0); in stdprinter_new()
Denumobject.c45 en = (enumobject *)type->tp_alloc(type, 0); in enum_new_impl()
305 ro = (reversedobject *)type->tp_alloc(type, 0); in reversed_new_impl()
Dtypeslots.inc48 offsetof(PyHeapTypeObject, ht_type.tp_alloc),
/external/python/cpython3/Modules/_sqlite/
Drow.c42 assert(type != NULL && type->tp_alloc != NULL); in pysqlite_row_new()
59 self = (pysqlite_Row *) type->tp_alloc(type, 0); in pysqlite_row_new()
/external/python/cpython2/Modules/_sqlite/
Drow.c43 assert(type != NULL && type->tp_alloc != NULL); in pysqlite_row_new()
60 self = (pysqlite_Row *) type->tp_alloc(type, 0); in pysqlite_row_new()
/external/python/cpython2/Doc/includes/
Dtypestruct.h66 allocfunc tp_alloc; member
Dnoddy2.c24 self = (Noddy *)type->tp_alloc(type, 0); in Noddy_new()
Dnoddy4.c59 self = (Noddy *)type->tp_alloc(type, 0); in Noddy_new()
Dnoddy3.c24 self = (Noddy *)type->tp_alloc(type, 0); in Noddy_new()
/external/python/cpython3/Doc/includes/
Dtypestruct.h64 allocfunc tp_alloc; member
Dcustom2.c23 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
Dcustom3.c23 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
Dcustom4.c39 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
/external/python/cpython3/Modules/
Ditertoolsmodule.c37 gbo = (groupbyobject *)type->tp_alloc(type, 0); in groupby_new()
912 lz = (cycleobject *)type->tp_alloc(type, 0); in cycle_new()
1107 lz = (dropwhileobject *)type->tp_alloc(type, 0); in dropwhile_new()
1275 lz = (takewhileobject *)type->tp_alloc(type, 0); in takewhile_new()
1492 lz = (isliceobject *)type->tp_alloc(type, 0); in islice_new()
1697 lz = (starmapobject *)type->tp_alloc(type, 0); in starmap_new()
1827 lz = (chainobject *)type->tp_alloc(type, 0); in chain_new_internal()
2108 lz = (productobject *)type->tp_alloc(type, 0); in product_new()
2437 co = (combinationsobject *)type->tp_alloc(type, 0); in combinations_new()
2777 co = (cwrobject *)type->tp_alloc(type, 0); in cwr_new()
[all …]
D_threadmodule.c441 self = (rlockobject *) type->tp_alloc(type, 0); in rlock_new()
668 dummy = (localdummyobject *) localdummytype.tp_alloc(&localdummytype, 0); in _local_create_dummy()
720 self = (localobject *)type->tp_alloc(type, 0); in local_new()
/external/python/cpython2/Objects/
Denumobject.c25 en = (enumobject *)type->tp_alloc(type, 0); in enum_new()
273 ro = (reversedobject *)type->tp_alloc(type, 0); in reversed_new()
/external/python/cpython3/Doc/c-api/
Dtype.rst82 Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type object. Use
89 new instance using the type's :c:member:`~PyTypeObject.tp_alloc` slot.
/external/python/cpython2/Mac/Modules/carbonevt/
D_CarbonEvtmodule.c398 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventRef_tp_new()
619 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventQueueRef_tp_new()
749 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventLoopRef_tp_new()
897 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventLoopTimerRef_tp_new()
1089 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventHandlerRef_tp_new()
1222 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventHandlerCallRef_tp_new()
1377 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventTargetRef_tp_new()
1507 if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; in EventHotKeyRef_tp_new()
/external/python/cpython3/Modules/_io/
Dbytesio.c286 buf = (bytesiobuf *) type->tp_alloc(type, 0); in _io_BytesIO_getbuffer_impl()
883 assert(type != NULL && type->tp_alloc != NULL); in bytesio_new()
884 self = (bytesio *)type->tp_alloc(type, 0); in bytesio_new()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor_bridge.cc213 TensorReleaserType.tp_alloc(&TensorReleaserType, 0)); in ArrayFromMemory()
/external/brotli/python/
D_brotli.cc162 self = (brotli_Compressor *)type->tp_alloc(type, 0); in brotli_Compressor_new()
448 self = (brotli_Decompressor *)type->tp_alloc(type, 0); in brotli_Decompressor_new()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/include/
Dcext.h228 ((void *)((PyTypeObject *)type)->tp_alloc(type, (Py_ssize_t)0))
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst292 self = (CustomObject *) type->tp_alloc(type, 0);
332 The ``tp_new`` implementation calls the :c:member:`~PyTypeObject.tp_alloc`
335 self = (CustomObject *) type->tp_alloc(type, 0);
337 Since memory allocation may fail, we must check the :c:member:`~PyTypeObject.tp_alloc`
341 We didn't fill the :c:member:`~PyTypeObject.tp_alloc` slot ourselves. Rather
781 That's pretty much it. If we had written custom :c:member:`~PyTypeObject.tp_alloc` or
844 create the memory for the object with its :c:member:`~PyTypeObject.tp_alloc`,
872 existing type, it is not necessary to fill out the :c:member:`~PyTypeObject.tp_alloc`

12345