Home
last modified time | relevance | path

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

1234

/external/python/cpython2/Objects/
Diterobject.c20 it = PyObject_GC_New(seqiterobject, &PySeqIter_Type); in PySeqIter_New()
146 it = PyObject_GC_New(calliterobject, &PyCallIter_Type); in PyCallIter_New()
Dcellobject.c10 op = (PyCellObject *)PyObject_GC_New(PyCellObject, &PyCell_Type); in PyCell_New()
Dmoduleobject.c22 m = PyObject_GC_New(PyModuleObject, &PyModule_Type); in PyModule_New()
Dmemoryobject.c61 PyObject_GC_New(PyMemoryViewObject, &PyMemoryView_Type); in PyMemoryView_FromBuffer()
254 mem = PyObject_GC_New(PyMemoryViewObject, &PyMemoryView_Type); in PyMemoryView_GetContiguous()
Dsliceobject.c63 PySliceObject *obj = PyObject_GC_New(PySliceObject, &PySlice_Type); in PySlice_New()
Dgenobject.c385 PyGenObject *gen = PyObject_GC_New(PyGenObject, &PyGen_Type); in PyGen_New()
Dmethodobject.c27 op = PyObject_GC_New(PyCFunctionObject, &PyCFunction_Type); in PyCFunction_NewEx()
/external/python/cpython2/Misc/
Dpymemcompat.h78 #define PyObject_GC_New PyObject_New macro
/external/python/cpython3/Objects/
Diterobject.c23 it = PyObject_GC_New(seqiterobject, &PySeqIter_Type); in PySeqIter_New()
184 it = PyObject_GC_New(calliterobject, &PyCallIter_Type); in PyCallIter_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()
Dgenobject.c784 PyGenObject *gen = PyObject_GC_New(PyGenObject, type); in gen_new_with_qualname()
904 PyCoroWrapper *cw = PyObject_GC_New(PyCoroWrapper, &_PyCoroWrapper_Type); in coro_await()
1658 o = PyObject_GC_New(PyAsyncGenASend, &_PyAsyncGenASend_Type); in async_gen_asend_new()
1758 o = PyObject_GC_New(_PyAsyncGenWrappedValue, in _PyAsyncGenValueWrapperNew()
2043 o = PyObject_GC_New(PyAsyncGenAThrow, &_PyAsyncGenAThrow_Type); in async_gen_athrow_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()
Ddescrobject.c1220 mappingproxy = PyObject_GC_New(mappingproxyobject, &PyDictProxy_Type); in mappingproxy_new_impl()
1237 pp = PyObject_GC_New(mappingproxyobject, &PyDictProxy_Type); in PyDictProxy_New()
1443 wp = PyObject_GC_New(wrapperobject, &_PyMethodWrapper_Type); in PyWrapper_New()
Dsliceobject.c125 obj = PyObject_GC_New(PySliceObject, &PySlice_Type); in PySlice_New()
/external/python/cpython3/Doc/c-api/
Dgcsupport.rst30 #. The memory for the object must be allocated using :c:func:`PyObject_GC_New`
37 .. c:function:: TYPE* PyObject_GC_New(TYPE, PyTypeObject *type)
102 Releases memory allocated to an object using :c:func:`PyObject_GC_New` or
/external/python/cpython2/Doc/c-api/
Dgcsupport.rst33 #. The memory for the object must be allocated using :c:func:`PyObject_GC_New`
40 .. c:function:: TYPE* PyObject_GC_New(TYPE, PyTypeObject *type)
91 Releases memory allocated to an object using :c:func:`PyObject_GC_New` or
/external/python/cpython3/Include/
Dobjimpl.h184 #define PyObject_GC_New(type, typeobj) \ macro
/external/python/cpython3/Modules/
Dxxlimited.c34 self = PyObject_GC_New(XxoObject, (PyTypeObject*)Xxo_Type); in newXxoObject()
D_operator.c967 ig = PyObject_GC_New(itemgetterobject, &itemgetter_type); in itemgetter_new()
1250 ag = PyObject_GC_New(attrgetterobject, &attrgetter_type); in attrgetter_new()
1517 mc = PyObject_GC_New(methodcallerobject, &methodcaller_type); in methodcaller_new()
/external/python/cpython2/Modules/
Doperator.c481 ig = PyObject_GC_New(itemgetterobject, &itemgetter_type); in itemgetter_new()
620 ag = PyObject_GC_New(attrgetterobject, &attrgetter_type); in attrgetter_new()
800 mc = PyObject_GC_New(methodcallerobject, &methodcaller_type); in methodcaller_new()
/external/python/cpython3/Python/
Dcontext.c346 ctx = PyObject_GC_New(PyContext, &PyContext_Type); in _context_alloc()
799 PyContextVar *var = PyObject_GC_New(PyContextVar, &PyContextVar_Type); in contextvar_new()
1202 PyContextToken *tok = PyObject_GC_New(PyContextToken, &PyContextToken_Type); in token_new()
/external/python/cpython2/Python/
Dtraceback.c92 tb = PyObject_GC_New(PyTracebackObject, &PyTraceBack_Type); in newtracebackobject()
/external/python/cpython2/Include/
Dobjimpl.h328 #define PyObject_GC_New(type, typeobj) \ macro
/external/python/cffi/c/
Dminibuffer.h399 MiniBufferObj *ob = PyObject_GC_New(MiniBufferObj, &MiniBuffer_Type); in minibuffer_new()

1234