Home
last modified time | relevance | path

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

12

/third_party/python/Include/
Dobjimpl.h134 #define PyObject_New(type, typeobj) ((type *)_PyObject_New(typeobj)) macro
138 #define PyObject_NEW(type, typeobj) PyObject_New(type, typeobj)
/third_party/python/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
Dgcsupport.rst59 Analogous to :c:func:`PyObject_New` but for container objects with the
/third_party/python/PC/
D_msi.c645 msiobj *result = PyObject_New(struct msiobj, &record_Type); in record_new()
1062 result = PyObject_New(struct msiobj, &msiview_Type); in _msi_Database_OpenView_impl()
1111 oresult = PyObject_New(struct msiobj, &summary_Type); in _msi_Database_GetSummaryInformation_impl()
1212 result = PyObject_New(struct msiobj, &msidb_Type); in _msi_OpenDatabase_impl()
Dwinreg.c394 PyHKEYObject *key = PyObject_New(PyHKEYObject, &PyHKEY_Type); in PyHKEY_New()
/third_party/protobuf/python/google/protobuf/pyext/
Dfield.cc132 PyObject_New(PyMessageFieldProperty, CFieldProperty_Type); in NewFieldProperty()
Ddescriptor_containers.cc789 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByName()
801 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByCamelcaseName()
818 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); in NewMappingByNumber()
830 PyContainer* self = PyObject_New(PyContainer, &DescriptorSequence_Type); in NewSequence()
932 PyContainerIterator* self = PyObject_New(PyContainerIterator, in NewContainerIterator()
/third_party/python/Objects/
Drangeobject.c59 obj = PyObject_New(rangeobject, type); in make_range_object()
920 rangeiterobject *it = PyObject_New(rangeiterobject, &PyRangeIter_Type); in fast_range_iter()
1126 it = PyObject_New(longrangeiterobject, &PyLongRangeIter_Type); in range_iter()
1212 it = PyObject_New(longrangeiterobject, &PyLongRangeIter_Type); in range_reverse()
Dinterpreteridobject.c33 interpid *self = PyObject_New(interpid, cls); in newinterpid()
Dcapsule.c53 capsule = PyObject_New(PyCapsule, &PyCapsule_Type); in PyCapsule_New()
Dfileobject.c338 self = PyObject_New(PyStdPrinter_Object, in PyFile_NewStdPrinter()
/third_party/python/Modules/
Dxxmodule.c34 self = PyObject_New(XxoObject, &Xxo_Type); in newXxoObject()
D_hashopenssl.c413 EVPobject *retval = (EVPobject *)PyObject_New(EVPobject, type); in newEVPobject()
1535 self = (HMACobject *)PyObject_New(HMACobject, type); in _hashlib_hmac_new_impl()
1628 retval = (HMACobject *)PyObject_New(HMACobject, Py_TYPE(self)); in _hashlib_HMAC_copy_impl()
D_curses_panel.c252 PyCursesPanelObject *po = PyObject_New(PyCursesPanelObject, in PyCursesPanel_New()
Dossaudiodev.c139 if ((self = PyObject_New(oss_audio_t, &OSSAudioType)) == NULL) { in newossobject()
186 if ((self = PyObject_New(oss_mixer_t, &OSSMixerType)) == NULL) { in newossmixerobject()
Dselectmodule.c715 self = PyObject_New(pollObject, get_select_state(module)->poll_Type); in newPollObject()
1099 self = PyObject_New(devpollObject, get_select_state(module)->devpoll_Type); in newDevPollObject()
2217 ch = PyObject_New(kqueue_event_Object, state->kqueue_event_Type); in select_kqueue_control_impl()
D_tkinter.c713 v = PyObject_New(TkappObject, (PyTypeObject *) Tkapp_Type); in Tkapp_New()
897 self = PyObject_New(PyTclObject, (PyTypeObject *) PyTclObject_Type); in newPyTclObject()
2809 v = PyObject_New(TkttObject, (PyTypeObject *) Tktt_Type); in Tktt_New()
D_testbuffer.c212 nd = PyObject_New(NDArrayObject, &NDArray_Type); in ndarray_new()
2715 return (PyObject *)PyObject_New(StaticArrayObject, &StaticArray_Type); in staticarray_new()
D_testcapimodule.c421 obj = PyObject_New(PyObject, type); in test_lazy_hash_inheritance()
5963 ob = PyObject_New(test_structmembers, type); in test_structmembers_new()
6430 PyGenericAliasObject *o = PyObject_New(PyGenericAliasObject, &GenericAlias_Type); in generic_alias_new()
6547 MethodDescriptor2Object *op = PyObject_New(MethodDescriptor2Object, type); in MethodDescriptor2_new()
Dzlibmodule.c257 self = PyObject_New(compobject, type); in newcompobject()
/third_party/python/Objects/stringlib/
Dunicode_format.h1117 it = PyObject_New(formatteriterobject, &PyFormatterIter_Type); in formatter_parser()
1260 it = PyObject_New(fieldnameiterobject, &PyFieldNameIter_Type); in formatter_field_name_split()
/third_party/python/Modules/_multiprocessing/
Dsemaphore.c457 self = PyObject_New(SemLockObject, type); in newsemlockobject()
/third_party/python/Modules/_sha3/
Dsha3module.c178 newobj = (SHA3object *)PyObject_New(SHA3object, type); in newSHA3object()
/third_party/python/Python/
Dcontext.c1275 _token_missing = (PyObject *)PyObject_New( in get_token_missing()
/third_party/python/Doc/data/
Drefcounts.dat1749 PyObject_New:PyObject*::+1:
1750 PyObject_New::TYPE::
1751 PyObject_New:PyTypeObject*:type:0:

12