/third_party/python/Modules/_ssl/ |
D | cert.c | 22 assert(type != NULL && type->tp_alloc != NULL); in newCertificate() 25 self = (PySSLCertificate *) type->tp_alloc(type, 0); in newCertificate()
|
/third_party/python/Objects/ |
D | picklebufobject.c | 22 self = (PyPickleBufferObject *) type->tp_alloc(type, 0); in PyPickleBuffer_FromObject() 81 self = (PyPickleBufferObject *) type->tp_alloc(type, 0); in picklebuf_new()
|
D | namespaceobject.c | 26 assert(type != NULL && type->tp_alloc != NULL); in namespace_new() 27 self = type->tp_alloc(type, 0); in namespace_new()
|
D | enumobject.c | 47 en = (enumobject *)type->tp_alloc(type, 0); in enum_new_impl() 319 ro = (reversedobject *)type->tp_alloc(type, 0); in reversed_new_impl()
|
D | genericaliasobject.c | 614 gaobject *self = (gaobject *)type->tp_alloc(type, 0); in ga_new() 653 .tp_alloc = PyType_GenericAlloc,
|
D | typeslots.inc | 48 {-1, offsetof(PyTypeObject, tp_alloc)},
|
/third_party/python/Modules/_sqlite/ |
D | row.c | 78 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()
|
D | cache.c | 33 node = (pysqlite_Node*) (pysqlite_NodeType->tp_alloc(pysqlite_NodeType, 0)); in pysqlite_new_node()
|
/third_party/python/Modules/ |
D | itertoolsmodule.c | 85 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.c | 511 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.c | 84 self = (simplequeueobject *) type->tp_alloc(type, 0); in simplequeue_new_impl()
|
/third_party/python/Doc/includes/ |
D | typestruct.h | 67 allocfunc tp_alloc; member
|
D | custom2.c | 24 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
|
D | custom3.c | 24 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
|
D | custom4.c | 40 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new()
|
/third_party/python/Modules/_io/ |
D | bytesio.c | 324 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()
|
D | stringio.c | 620 assert(type != NULL && type->tp_alloc != NULL); in stringio_new() 621 self = (stringio *)type->tp_alloc(type, 0); in stringio_new()
|
D | fileio.c | 177 assert(type != NULL && type->tp_alloc != NULL); in fileio_new() 179 self = (fileio *) type->tp_alloc(type, 0); in fileio_new()
|
D | winconsoleio.c | 220 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.cc | 162 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/ |
D | newtypes_tutorial.rst | 299 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/ |
D | bltinmodule.c | 522 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/ |
D | multibytecodec.c | 1042 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/ |
D | type.rst | 84 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/ |
D | blake2b_impl.c | 59 self = (BLAKE2bObject *)type->tp_alloc(type, 0); in new_BLAKE2bObject()
|