Home
last modified time | relevance | path

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

123

/third_party/boost/libs/python/test/
Dm1.cpp88 NoddyObject* noddy = PyObject_New(NoddyObject, &NoddyType); in new_noddy()
159 SimpleObject* simple = PyObject_New(SimpleObject, &SimpleType); in new_simple()
177 SimpleObject* p = PyObject_New(SimpleObject, &SimpleType); in convert()
/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/boost/libs/python/src/object/
Dlife_support.cpp100 life_support* system = PyObject_New(life_support, &life_support_type); in make_nurse_and_patient()
/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/boost/boost/python/
Dopaque_pointer_converter.hpp75 if ( python_instance *o = PyObject_New(python_instance, &type_object) ) in wrap()
/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()
/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()
Dcapsule.c53 capsule = PyObject_New(PyCapsule, &PyCapsule_Type); in PyCapsule_New()
Dinterpreteridobject.c33 interpid *self = PyObject_New(interpid, cls); in newinterpid()
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()
/third_party/boost/libs/python/doc/reference/
Dto_python_converter.qbk53 return PyObject_New(noddy_NoddyObject, &noddy_NoddyType);
Dpytype_function.qbk86 return PyObject_New(noddy_NoddyObject, &noddy_NoddyType);
/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()

123