Home
last modified time | relevance | path

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

123

/external/python/cpython2/Misc/
Dpymemcompat.h54 #define PyObject_New PyObject_NEW macro
78 #define PyObject_GC_New PyObject_New
/external/python/cpython2/Objects/
Drangeobject.c97 obj = PyObject_New(rangeobject, &PyRange_Type); in range_new()
301 it = PyObject_New(rangeiterobject, &Pyrangeiter_Type); in range_iter()
321 it = PyObject_New(rangeiterobject, &Pyrangeiter_Type); in range_reverse()
Dstructseq.c34 obj = PyObject_New(PyStructSequence, type); in PyStructSequence_New()
/external/python/cpython2/Modules/
Dsunaudiodev.c108 xp = PyObject_New(sadobject, &Sadtype); in newsadobject()
337 return PyObject_New(sadstatusobject, &Sadstatustype); in sads_alloc()
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()
Dxxmodule.c34 self = PyObject_New(XxoObject, &Xxo_Type); in newXxoObject()
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()
Dsvmodule.c313 p = PyObject_New(captureobject, &Capturetype); in newcaptureobject()
917 p = PyObject_New(svobject, &Svtype); in newsvobject()
Dsha256module.c385 return (SHAobject *)PyObject_New(SHAobject, &SHA224type); in newSHA224object()
391 return (SHAobject *)PyObject_New(SHAobject, &SHA256type); in newSHA256object()
Ddbmmodule.c54 dp = PyObject_New(dbmobject, &Dbmtype); in newdbmobject()
Dgdbmmodule.c63 dp = PyObject_New(dbmobject, &Dbmtype); in newdbmobject()
Dossaudiodev.c137 if ((self = PyObject_New(oss_audio_t, &OSSAudioType)) == NULL) { in newossobject()
185 if ((self = PyObject_New(oss_mixer_t, &OSSMixerType)) == NULL) { in newossmixerobject()
Dlinuxaudiodev.c136 if ((xp = PyObject_New(lad_t, &Ladtype)) == NULL) { in newladobject()
Dsha512module.c451 return (SHAobject *)PyObject_New(SHAobject, &SHA384type); in newSHA384object()
457 return (SHAobject *)PyObject_New(SHAobject, &SHA512type); in newSHA512object()
/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/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc760 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByName()
772 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByCamelcaseName()
789 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByNumber()
801 PyContainer* self = PyObject_New(PyContainer, &DescriptorSequence_Type); in NewSequence()
903 PyContainerIterator* self = PyObject_New(PyContainerIterator, in NewContainerIterator()
Ddescriptor_pool.cc67 PyDescriptorPool* cpool = PyObject_New( in _CreateDescriptorPool()
/external/python/cpython2/Include/
Dobjimpl.h156 #define PyObject_New(type, typeobj) \ macro
/external/python/cpython2/Objects/stringlib/
Dstring_format.h1189 it = PyObject_New(formatteriterobject, &PyFormatterIter_Type); in formatter_parser()
1329 it = PyObject_New(fieldnameiterobject, &PyFieldNameIter_Type); in formatter_field_name_split()
/external/python/cpython2/Modules/_multiprocessing/
Dconnection.h61 self = PyObject_New(ConnectionObject, type); in connection_new()
Dsemaphore.c413 self = PyObject_New(SemLockObject, type); in newsemlockobject()

123