Home
last modified time | relevance | path

Searched refs:tp_init (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython3/Doc/includes/
Dsublist.c25 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0) in SubList_init()
38 .tp_init = (initproc) SubList_init,
Dtypestruct.h63 initproc tp_init; member
Dcustom2.c106 .tp_init = (initproc) Custom_init,
Dcustom3.c156 .tp_init = (initproc) Custom_init,
Dcustom4.c168 .tp_init = (initproc) Custom_init,
/external/python/cpython2/Modules/
Dxxsubtype.c85 if (PyList_Type.tp_init((PyObject *)self, args, kwds) < 0) in spamlist_init()
182 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in spamdict_init()
Dthreadmodule.c336 if (type->tp_init == PyBaseObject_Type.tp_init) { in local_new()
451 if (Py_TYPE(self)->tp_init != PyBaseObject_Type.tp_init && in _ldict()
452 Py_TYPE(self)->tp_init((PyObject*)self, in _ldict()
/external/python/cpython3/Modules/
Dxxsubtype.c85 if (PyList_Type.tp_init((PyObject *)self, args, kwds) < 0) in spamlist_init()
182 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in spamdict_init()
D_threadmodule.c745 if (type->tp_init == PyBaseObject_Type.tp_init) { in local_new()
865 if (Py_TYPE(self)->tp_init != PyBaseObject_Type.tp_init && in _ldict()
866 Py_TYPE(self)->tp_init((PyObject*)self, in _ldict()
/external/python/cpython2/Doc/includes/
Dshoddy.c26 if (PyList_Type.tp_init((PyObject *)self, args, kwds) < 0) in Shoddy_init()
Dtypestruct.h65 initproc tp_init; member
/external/tensorflow/tensorflow/python/util/
Dfast_module_type.cc44 if (PyModule_Type.tp_init(reinterpret_cast<PyObject *>(self), args, kwds) < 0) in FastModule_init()
238 obj.tp_init = reinterpret_cast<initproc>(FastModule_init); in __anona71ec8820102()
/external/python/cpython3/Objects/
Dtypeslots.inc61 offsetof(PyHeapTypeObject, ht_type.tp_init),
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst331 arguments, leaving the argument handling to initializer (a.k.a. ``tp_init``
335 ``tp_new`` shouldn't call ``tp_init`` explicitly, as the interpreter
392 by filling the :c:member:`~PyTypeObject.tp_init` slot. ::
394 .tp_init = (initproc) Custom_init,
396 The :c:member:`~PyTypeObject.tp_init` slot is exposed in Python as the
401 Unlike the ``tp_new`` handler, there is no guarantee that ``tp_init``
616 We also need to update the :c:member:`~PyTypeObject.tp_init` handler to only
838 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0)
/external/python/pybind11/include/pybind11/detail/
Dclass.h467 type->tp_init = pybind11_object_init; in make_object_base_type()
663 type->tp_init = pybind11_object_init; in make_new_python_type()
/external/python/cpython2/Python/
Dsysmodule.c1497 VersionInfoType.tp_init = NULL; in _PySys_Init()
1505 FlagsType.tp_init = NULL; in _PySys_Init()
1514 WindowsVersionType.tp_init = NULL; in _PySys_Init()
/external/python/cpython3/Include/cpython/
Dobject.h257 initproc tp_init; member
/external/python/cpython2/Modules/_io/
D_iomodule.c115 if (((PyTypeObject *)PyExc_IOError)->tp_init( in blockingioerror_init()
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst515 …:c:member:`~PyTypeObject.tp_dictoffset`, :c:member:`~PyTypeObject.tp_init`, :c:member:`~PyTypeObje…
935 .. c:member:: initproc PyTypeObject.tp_init
946 int tp_init(PyObject *self, PyObject *args, PyObject *kwds)
952 The :c:member:`~PyTypeObject.tp_init` function, if not *NULL*, is called when an instance is
956 …:c:member:`~PyTypeObject.tp_init` function is called; if :c:member:`~PyTypeObject.tp_new` returns …
957 … subtype of the original type, the subtype's :c:member:`~PyTypeObject.tp_init` is called. (VERSION
959 Python 2.2, the :c:member:`~PyTypeObject.tp_init` of the type of the object returned by
1013 ignored or repeated should be placed in the :c:member:`~PyTypeObject.tp_init` handler. A good
1016 deferred to :c:member:`~PyTypeObject.tp_init`.
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c22 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in PyCStgDict_init()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst122 …| :c:member:`~PyTypeObject.tp_init` | :c:type:`initproc` | __init__ …
1651 .. c:member:: initproc PyTypeObject.tp_init
1662 int tp_init(PyObject *self, PyObject *args, PyObject *kwds);
1668 The :c:member:`~PyTypeObject.tp_init` function, if not ``NULL``, is called when an instance is
1672 …:c:member:`~PyTypeObject.tp_init` function is called; if :c:member:`~PyTypeObject.tp_new` returns …
1673 subtype of the original type, the subtype's :c:member:`~PyTypeObject.tp_init` is called.
1727 ignored or repeated should be placed in the :c:member:`~PyTypeObject.tp_init` handler. A good
1730 deferred to :c:member:`~PyTypeObject.tp_init`.
2372 See :c:member:`~PyTypeObject.tp_init`.
2511 0, /* tp_init */
/external/python/cpython2/Include/
Dobject.h388 initproc tp_init; member
/external/python/cpython3/Python/
Dsysmodule.c2755 VersionInfoType.tp_init = NULL; in _PySys_InitCore()
2782 WindowsVersionType.tp_init = NULL; in _PySys_InitCore()
2950 FlagsType.tp_init = NULL; in _PySys_InitMain()
/external/python/cpython2/Objects/
Dtypeobject.c764 type->tp_init != NULL && in type_call()
765 type->tp_init(obj, args, kwds) < 0) { in type_call()
2983 if (type->tp_init != object_init && in object_init()
2990 else if (type->tp_init != object_init || in object_init()
3007 type->tp_init != object_init) in object_new()
3014 type->tp_init == object_init) in object_new()
4096 COPYSLOT(tp_init);
6083 FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)wrap_init,
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c22 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in PyCStgDict_init()

12