Home
last modified time | relevance | path

Searched refs:PyObject_New (Results 1 – 25 of 119) sorted by relevance

12345

/external/python/cpython2/Misc/
Dpymemcompat.h54 #define PyObject_New PyObject_NEW macro
78 #define PyObject_GC_New PyObject_New
/external/python/cpython3/Include/
Dobjimpl.h125 #define PyObject_New(type, typeobj) ((type *)_PyObject_New(typeobj)) macro
129 #define PyObject_NEW(type, typeobj) PyObject_New(type, typeobj)
/external/python/cpython2/Objects/
Drangeobject.c97 obj = PyObject_New(rangeobject, &PyRange_Type); in range_new()
299 it = PyObject_New(rangeiterobject, &Pyrangeiter_Type); in range_iter()
319 it = PyObject_New(rangeiterobject, &Pyrangeiter_Type); in range_reverse()
/external/python/cpython3/Doc/c-api/
Dallocation.rst30 .. c:function:: TYPE* PyObject_New(TYPE, PyTypeObject *type)
53 Releases memory allocated to an object using :c:func:`PyObject_New` or
/external/protobuf/python/google/protobuf/pyext/
Dfield.cc132 PyObject_New(PyMessageFieldProperty, CFieldProperty_Type); in NewFieldProperty()
Ddescriptor_containers.cc786 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByName()
798 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByCamelcaseName()
815 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByNumber()
827 PyContainer* self = PyObject_New(PyContainer, &DescriptorSequence_Type); in NewSequence()
929 PyContainerIterator* self = PyObject_New(PyContainerIterator, in NewContainerIterator()
/external/python/cffi/c/
Dcglob.c49 GlobSupportObject *gs = PyObject_New(GlobSupportObject, &GlobSupport_Type); in make_global_var()
Dmisc_thread_common.h193 canary = PyObject_New(ThreadCanaryObj, &ThreadCanary_Type); in thread_canary_register()
/external/python/cpython3/PC/
D_msi.c534 msiobj *result = PyObject_New(struct msiobj, &record_Type); in record_new()
885 result = PyObject_New(struct msiobj, &msiview_Type); in msidb_openview()
921 oresult = PyObject_New(struct msiobj, &summary_Type); in msidb_getsummaryinformation()
1016 result = PyObject_New(struct msiobj, &msidb_Type); in msiopendb()
/external/python/cpython2/Modules/
Dsunaudiodev.c108 xp = PyObject_New(sadobject, &Sadtype); in newsadobject()
337 return PyObject_New(sadstatusobject, &Sadstatustype); in sads_alloc()
Dxxmodule.c34 self = PyObject_New(XxoObject, &Xxo_Type); in newXxoObject()
Dbsddbmodule.c60 if ((dp = PyObject_New(bsddbobject, &Bsddbtype)) == NULL) in newdbhashobject()
108 if ((dp = PyObject_New(bsddbobject, &Bsddbtype)) == NULL) in newdbbtobject()
159 if ((dp = PyObject_New(bsddbobject, &Bsddbtype)) == NULL) in newdbrnobject()
Dfmmodule.c31 fhp = PyObject_New(fhobject, &Fhtype); in newfhobject()
Dmd5module.c30 md5p = PyObject_New(md5object, &MD5type); in newmd5object()
Ddlmodule.c30 xp = PyObject_New(dlobject, &Dltype); in newdlobject()
DcStringIO.c585 self = PyObject_New(Oobject, &Otype); in newOobject()
695 self = PyObject_New(Iobject, &Itype); in newIobject()
Dcdmodule.c414 p = PyObject_New(cdplayerobject, &CdPlayertype); in newcdplayerobject()
704 p = PyObject_New(cdparserobject, &CdParsertype); in newcdparserobject()
/external/python/cpython2/Doc/c-api/
Dallocation.rst41 .. c:function:: TYPE* PyObject_New(TYPE, PyTypeObject *type)
68 Releases memory allocated to an object using :c:func:`PyObject_New` or
/external/python/cpython3/Objects/
Drangeobject.c58 obj = PyObject_New(rangeobject, type); in make_range_object()
900 rangeiterobject *it = PyObject_New(rangeiterobject, &PyRangeIter_Type); in fast_range_iter()
1103 it = PyObject_New(longrangeiterobject, &PyLongRangeIter_Type); in range_iter()
1189 it = PyObject_New(longrangeiterobject, &PyLongRangeIter_Type); in range_reverse()
Dcapsule.c53 capsule = PyObject_New(PyCapsule, &PyCapsule_Type); in PyCapsule_New()
Dinterpreteridobject.c27 interpid *self = PyObject_New(interpid, cls); in newinterpid()
/external/python/cpython3/Modules/
Dxxmodule.c34 self = PyObject_New(XxoObject, &Xxo_Type); in newXxoObject()
Dsha256module.c375 return (SHAobject *)PyObject_New(SHAobject, &SHA224type); in newSHA224object()
381 return (SHAobject *)PyObject_New(SHAobject, &SHA256type); in newSHA256object()
D_functoolsmodule.c557 result = PyObject_New(keyobject, &keyobject_type); in keyobject_call()
614 object = PyObject_New(keyobject, &keyobject_type); in functools_cmp_to_key()
1031 link = (lru_list_elem *)PyObject_New(lru_list_elem, in bounded_lru_cache_wrapper()
/external/python/cpython2/Include/
Dobjimpl.h156 #define PyObject_New(type, typeobj) \ macro

12345