Home
last modified time | relevance | path

Searched refs:PyObject_GC_New (Results 1 – 25 of 56) sorted by relevance

123

/third_party/python/Objects/
Diterobject.c23 it = PyObject_GC_New(seqiterobject, &PySeqIter_Type); in PySeqIter_New()
184 it = PyObject_GC_New(calliterobject, &PyCallIter_Type); in PyCallIter_New()
490 anextawaitableobject *anext = PyObject_GC_New( in PyAnextAwaitable_New()
Dcellobject.c11 op = (PyCellObject *)PyObject_GC_New(PyCellObject, &PyCell_Type); in PyCell_New()
Dclassobject.c105 PyMethodObject *im = PyObject_GC_New(PyMethodObject, &PyMethod_Type); in PyMethod_New()
380 method = PyObject_GC_New(PyInstanceMethodObject, in PyInstanceMethod_New()
Dmethodobject.c87 PyCMethodObject *om = PyObject_GC_New(PyCMethodObject, &PyCMethod_Type); in PyCMethod_New()
101 op = PyObject_GC_New(PyCFunctionObject, &PyCFunction_Type); in PyCMethod_New()
Dgenobject.c834 PyGenObject *gen = PyObject_GC_New(PyGenObject, type); in gen_new_with_qualname()
953 PyCoroWrapper *cw = PyObject_GC_New(PyCoroWrapper, &_PyCoroWrapper_Type); in coro_await()
1730 o = PyObject_GC_New(PyAsyncGenASend, &_PyAsyncGenASend_Type); in async_gen_asend_new()
1842 o = PyObject_GC_New(_PyAsyncGenWrappedValue, in _PyAsyncGenValueWrapperNew()
2128 o = PyObject_GC_New(PyAsyncGenAThrow, &_PyAsyncGenAThrow_Type); in async_gen_athrow_new()
Ddescrobject.c1223 mappingproxy = PyObject_GC_New(mappingproxyobject, &PyDictProxy_Type); in mappingproxy_new_impl()
1240 pp = PyObject_GC_New(mappingproxyobject, &PyDictProxy_Type); in PyDictProxy_New()
1446 wp = PyObject_GC_New(wrapperobject, &_PyMethodWrapper_Type); in PyWrapper_New()
Dunionobject.c486 unionobject *result = PyObject_GC_New(unionobject, &_PyUnion_Type); in make_union()
Dsliceobject.c134 obj = PyObject_GC_New(PySliceObject, &PySlice_Type); in PySlice_New()
/third_party/python/Include/
Dobjimpl.h184 #define PyObject_GC_New(type, typeobj) \ macro
/third_party/python/Doc/c-api/
Dgcsupport.rst30 #. The memory for the object must be allocated using :c:func:`PyObject_GC_New`
57 .. c:function:: TYPE* PyObject_GC_New(TYPE, PyTypeObject *type)
114 Releases memory allocated to an object using :c:func:`PyObject_GC_New` or
/third_party/python/Python/
Dcontext.c357 ctx = PyObject_GC_New(PyContext, &PyContext_Type); in _context_alloc()
815 PyContextVar *var = PyObject_GC_New(PyContextVar, &PyContextVar_Type); in contextvar_new()
1218 PyContextToken *tok = PyObject_GC_New(PyContextToken, &PyContextToken_Type); in token_new()
Dhamt.c1627 PyHamtNode_Array *node = PyObject_GC_New( in hamt_node_array_new()
2457 o = PyObject_GC_New(PyHamtObject, &_PyHamt_Type); in hamt_alloc()
2584 PyHamtIterator *it = PyObject_GC_New(PyHamtIterator, type); in hamt_baseiter_new()
/third_party/python/Modules/
Dxxlimited_35.c29 self = PyObject_GC_New(XxoObject, (PyTypeObject*)Xxo_Type); in newXxoObject()
Dxxlimited.c88 self = PyObject_GC_New(XxoObject, (PyTypeObject*)state->Xxo_Type); in newXxoObject()
D_operator.c979 ig = PyObject_GC_New(itemgetterobject, (PyTypeObject *) state->itemgetter_type); in itemgetter_new()
1250 ag = PyObject_GC_New(attrgetterobject, (PyTypeObject *)state->attrgetter_type); in attrgetter_new()
1505 mc = PyObject_GC_New(methodcallerobject, (PyTypeObject *)state->methodcaller_type); in methodcaller_new()
Dsha256module.c385 SHAobject *sha = (SHAobject *)PyObject_GC_New(SHAobject, in newSHA224object()
394 SHAobject *sha = (SHAobject *)PyObject_GC_New(SHAobject, in newSHA256object()
Dsha512module.c441 SHAobject *sha = (SHAobject *)PyObject_GC_New(SHAobject, st->sha384_type); in newSHA384object()
449 SHAobject *sha = (SHAobject *)PyObject_GC_New(SHAobject, st->sha512_type); in newSHA512object()
D_dbmmodule.c68 dbmobject *dp = PyObject_GC_New(dbmobject, state->dbm_type); in newdbmobject()
Dsha1module.c313 SHA1object *sha = (SHA1object *)PyObject_GC_New(SHA1object, st->sha1_type); in newSHA1object()
D_gdbmmodule.c77 gdbmobject *dp = PyObject_GC_New(gdbmobject, state->gdbm_type); in newgdbmobject()
D_csv.c1013 ReaderObj * self = PyObject_GC_New( in csv_reader()
1438 WriterObj * self = PyObject_GC_New(WriterObj, module_state->writer_type); in csv_writer()
D_functoolsmodule.c577 result = PyObject_GC_New(keyobject, Py_TYPE(ko)); in keyobject_call()
639 object = PyObject_GC_New(keyobject, state->keyobject_type); in functools_cmp_to_key()
Dmd5module.c336 MD5object *md5 = (MD5object *)PyObject_GC_New(MD5object, st->md5_type); in newMD5object()
/third_party/python/Modules/_sqlite/
Dstatement.c75 pysqlite_Statement *self = PyObject_GC_New(pysqlite_Statement, in pysqlite_statement_create()
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_pool.cc105 PyDescriptorPool* cpool = PyObject_GC_New( in _CreateDescriptorPool()

123