Home
last modified time | relevance | path

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

12

/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()
Ddescrobject.c918 pp = PyObject_GC_New(proxyobject, &PyDictProxy_Type); in PyDictProxy_New()
1105 wp = PyObject_GC_New(wrapperobject, &wrappertype); in PyWrapper_New()
Dfuncobject.c12 PyFunctionObject *op = PyObject_GC_New(PyFunctionObject, in PyFunction_New()
Dclassobject.c115 op = PyObject_GC_New(PyClassObject, &PyClass_Type); in PyClass_New()
536 inst = PyObject_GC_New(PyInstanceObject, &PyInstance_Type); in PyInstance_NewRaw()
2263 im = PyObject_GC_New(PyMethodObject, &PyMethod_Type); in PyMethod_New()
Ddictobject.c277 mp = PyObject_GC_New(PyDictObject, &PyDict_Type); in PyDict_New()
2502 di = PyObject_GC_New(dictiterobject, itertype); in dictiter_new()
2835 dv = PyObject_GC_New(dictviewobject, type); in dictview_new()
Dlistobject.c142 op = PyObject_GC_New(PyListObject, &PyList_Type); in PyList_New()
2877 it = PyObject_GC_New(listiterobject, &PyListIter_Type); in list_iter()
2994 it = PyObject_GC_New(listreviterobject, &PyListRevIter_Type); in list_reversed()
Dweakrefobject.c36 result = PyObject_GC_New(PyWeakReference, &_PyWeakref_RefType); in new_weakref()
Dtupleobject.c1032 it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type); in tuple_iter()
/external/python/cpython2/Misc/
Dpymemcompat.h78 #define PyObject_GC_New PyObject_New macro
/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/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()
D_csv.c926 ReaderObj * self = PyObject_GC_New(ReaderObj, &Reader_Type); in csv_reader()
1360 WriterObj * self = PyObject_GC_New(WriterObj, &Writer_Type); in csv_writer()
Ditertoolsmodule.c199 igo = PyObject_GC_New(_grouperobject, &_grouper_type); in _grouper_create()
349 tdo = PyObject_GC_New(teedataobject, &teedataobject_type); in teedataobject_new()
517 newto = PyObject_GC_New(teeobject, &tee_type); in tee_copy()
544 to = PyObject_GC_New(teeobject, &tee_type); in tee_fromiterable()
D_collectionsmodule.c1251 it = PyObject_GC_New(dequeiterobject, &dequeiter_type); in deque_iter()
1361 it = PyObject_GC_New(dequeiterobject, &dequereviter_type); in deque_reviter()
Dpyexpat.c1076 new_parser = PyObject_GC_New(xmlparseobject, &Xmlparsetype); in xmlparse_ExternalEntityParserCreate()
1288 self = PyObject_GC_New(xmlparseobject, &Xmlparsetype); in newxmlparseobject()
Darraymodule.c2209 it = PyObject_GC_New(arrayiterobject, &PyArrayIter_Type); in array_iter()
DcPickle.c3050 self = PyObject_GC_New(Picklerobject, &Picklertype); in newPicklerobject()
5490 if (!( self = PyObject_GC_New(Unpicklerobject, &Unpicklertype))) in newUnpicklerobject()
/external/python/cpython2/Include/
Dobjimpl.h313 #define PyObject_GC_New(type, typeobj) \ macro
/external/python/cpython2/Python/
Dtraceback.c92 tb = PyObject_GC_New(PyTracebackObject, &PyTraceBack_Type); in newtracebackobject()

12