Home
last modified time | relevance | path

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

123

/third_party/python/Modules/_ssl/
Dcert.c22 assert(type != NULL && type->tp_alloc != NULL); in newCertificate()
25 self = (PySSLCertificate *) type->tp_alloc(type, 0); in newCertificate()
/third_party/python/Objects/
Dpicklebufobject.c22 self = (PyPickleBufferObject *) type->tp_alloc(type, 0); in PyPickleBuffer_FromObject()
81 self = (PyPickleBufferObject *) type->tp_alloc(type, 0); in picklebuf_new()
Dnamespaceobject.c26 assert(type != NULL && type->tp_alloc != NULL); in namespace_new()
27 self = type->tp_alloc(type, 0); in namespace_new()
Denumobject.c47 en = (enumobject *)type->tp_alloc(type, 0); in enum_new_impl()
319 ro = (reversedobject *)type->tp_alloc(type, 0); in reversed_new_impl()
Dgenericaliasobject.c614 gaobject *self = (gaobject *)type->tp_alloc(type, 0); in ga_new()
653 .tp_alloc = PyType_GenericAlloc,
Dtypeslots.inc48 {-1, offsetof(PyTypeObject, tp_alloc)},
/third_party/python/Modules/_sqlite/
Drow.c78 assert(type != NULL && type->tp_alloc != NULL); in pysqlite_row_new_impl()
80 self = (pysqlite_Row *) type->tp_alloc(type, 0); in pysqlite_row_new_impl()
Dcache.c33 node = (pysqlite_Node*) (pysqlite_NodeType->tp_alloc(pysqlite_NodeType, 0)); in pysqlite_new_node()
/third_party/python/Modules/
Ditertoolsmodule.c85 po = (pairwiseobject *)type->tp_alloc(type, 0); in pairwise_new_impl()
220 gbo = (groupbyobject *)type->tp_alloc(type, 0); in itertools_groupby_impl()
1112 lz = (cycleobject *)type->tp_alloc(type, 0); in itertools_cycle_impl()
1303 lz = (dropwhileobject *)type->tp_alloc(type, 0); in itertools_dropwhile_impl()
1466 lz = (takewhileobject *)type->tp_alloc(type, 0); in itertools_takewhile_impl()
1678 lz = (isliceobject *)type->tp_alloc(type, 0); in islice_new()
1884 lz = (starmapobject *)type->tp_alloc(type, 0); in itertools_starmap_impl()
2008 lz = (chainobject *)type->tp_alloc(type, 0); in chain_new_internal()
2293 lz = (productobject *)type->tp_alloc(type, 0); in product_new()
2626 co = (combinationsobject *)type->tp_alloc(type, 0); in itertools_combinations_impl()
[all …]
D_threadmodule.c511 rlockobject *self = (rlockobject *) type->tp_alloc(type, 0); in rlock_new()
608 lockobject *self = (lockobject *)type->tp_alloc(type, 0); in newlockobject()
739 dummy = (localdummyobject *) type->tp_alloc(type, 0); in _local_create_dummy()
797 localobject *self = (localobject *)type->tp_alloc(type, 0); in local_new()
D_queuemodule.c84 self = (simplequeueobject *) type->tp_alloc(type, 0); in simplequeue_new_impl()
/third_party/python/Doc/includes/
Dtypestruct.h67 allocfunc tp_alloc; member
Dcustom2.c24 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
Dcustom3.c24 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
Dcustom4.c40 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
/third_party/python/Modules/_io/
Dbytesio.c324 buf = (bytesiobuf *) type->tp_alloc(type, 0); in _io_BytesIO_getbuffer_impl()
907 assert(type != NULL && type->tp_alloc != NULL); in bytesio_new()
908 self = (bytesio *)type->tp_alloc(type, 0); in bytesio_new()
Dstringio.c620 assert(type != NULL && type->tp_alloc != NULL); in stringio_new()
621 self = (stringio *)type->tp_alloc(type, 0); in stringio_new()
Dfileio.c177 assert(type != NULL && type->tp_alloc != NULL); in fileio_new()
179 self = (fileio *) type->tp_alloc(type, 0); in fileio_new()
Dwinconsoleio.c220 assert(type != NULL && type->tp_alloc != NULL); in winconsoleio_new()
222 self = (winconsoleio *) type->tp_alloc(type, 0); in winconsoleio_new()
/third_party/skia/third_party/externals/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()
/third_party/python/Doc/extending/
Dnewtypes_tutorial.rst299 self = (CustomObject *) type->tp_alloc(type, 0);
339 The ``tp_new`` implementation calls the :c:member:`~PyTypeObject.tp_alloc`
342 self = (CustomObject *) type->tp_alloc(type, 0);
344 Since memory allocation may fail, we must check the :c:member:`~PyTypeObject.tp_alloc`
348 We didn't fill the :c:member:`~PyTypeObject.tp_alloc` slot ourselves. Rather
788 That's pretty much it. If we had written custom :c:member:`~PyTypeObject.tp_alloc` or
851 create the memory for the object with its :c:member:`~PyTypeObject.tp_alloc`,
884 existing type, it is not necessary to fill out the :c:member:`~PyTypeObject.tp_alloc`
/third_party/python/Python/
Dbltinmodule.c522 lz = (filterobject *)type->tp_alloc(type, 0); in filter_new()
553 filterobject *lz = (filterobject *)tp->tp_alloc(tp, 0); in filter_vectorcall()
1246 lz = (mapobject *)type->tp_alloc(type, 0); in map_new()
1288 mapobject *lz = (mapobject *)tp->tp_alloc(tp, 0); in map_vectorcall()
2698 lz = (zipobject *)type->tp_alloc(type, 0); in zip_new()
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c1042 self = (MultibyteIncrementalEncoderObject *)type->tp_alloc(type, 0); in mbiencoder_new()
1317 self = (MultibyteIncrementalDecoderObject *)type->tp_alloc(type, 0); in mbidecoder_new()
1634 self = (MultibyteStreamReaderObject *)type->tp_alloc(type, 0); in mbstreamreader_new()
1841 self = (MultibyteStreamWriterObject *)type->tp_alloc(type, 0); in mbstreamwriter_new()
/third_party/python/Doc/c-api/
Dtype.rst84 Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type object. Use
91 new instance using the type's :c:member:`~PyTypeObject.tp_alloc` slot.
/third_party/python/Modules/_blake2/
Dblake2b_impl.c59 self = (BLAKE2bObject *)type->tp_alloc(type, 0); in new_BLAKE2bObject()

123