Home
last modified time | relevance | path

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

12

/external/python/cpython3/Doc/includes/
Dsublist.c24 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0) in SubList_init()
37 .tp_init = (initproc) SubList_init,
Dtypestruct.h63 initproc tp_init; member
Dcustom2.c105 .tp_init = (initproc) Custom_init,
Dcustom3.c155 .tp_init = (initproc) Custom_init,
Dcustom4.c167 .tp_init = (initproc) Custom_init,
/external/python/cpython2/Modules/
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()
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()
/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.c706 if (type->tp_init == PyBaseObject_Type.tp_init) { in local_new()
823 if (Py_TYPE(self)->tp_init != PyBaseObject_Type.tp_init && in _ldict()
824 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/python/cpython3/Objects/
Dtypeslots.inc61 offsetof(PyHeapTypeObject, ht_type.tp_init),
Dtypeobject.c948 if (type->tp_init != NULL) { in type_call()
949 int res = type->tp_init(obj, args, kwds); in type_call()
3656 if (type->tp_init != object_init) { in object_init()
3680 if (type->tp_init == object_init) { in object_new()
5082 COPYSLOT(tp_init); in inherit_slots()
6836 FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)(void(*)(void))wrap_init,
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst325 arguments, leaving the argument handling to initializer (a.k.a. ``tp_init``
329 ``tp_new`` shouldn't call ``tp_init`` explicitly, as the interpreter
386 by filling the :c:member:`~PyTypeObject.tp_init` slot. ::
388 .tp_init = (initproc) Custom_init,
390 The :c:member:`~PyTypeObject.tp_init` slot is exposed in Python as the
395 Unlike the ``tp_new`` handler, there is no guarantee that ``tp_init``
610 We also need to update the :c:member:`~PyTypeObject.tp_init` handler to only
832 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0)
/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/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/cpython3/Python/
Dsysmodule.c2380 VersionInfoType.tp_init = NULL; in _PySys_BeginInit()
2406 WindowsVersionType.tp_init = NULL; in _PySys_BeginInit()
2497 FlagsType.tp_init = NULL; in _PySys_EndInit()
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c22 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in PyCStgDict_init()
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c22 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in PyCStgDict_init()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst850 .. c:member:: initproc PyTypeObject.tp_init
861 int tp_init(PyObject *self, PyObject *args, PyObject *kwds)
867 The :c:member:`~PyTypeObject.tp_init` function, if not *NULL*, is called when an instance is
871 …:c:member:`~PyTypeObject.tp_init` function is called; if :c:member:`~PyTypeObject.tp_new` returns …
872 subtype of the original type, the subtype's :c:member:`~PyTypeObject.tp_init` is called.
925 ignored or repeated should be placed in the :c:member:`~PyTypeObject.tp_init` handler. A good
928 deferred to :c:member:`~PyTypeObject.tp_init`.
/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/cpython2/Include/
Dobject.h388 initproc tp_init; member
/external/python/cpython3/Include/
Dobject.h410 initproc tp_init; member
/external/python/cpython2/Doc/extending/
Dnewtypes.rst389 by filling the :c:member:`~PyTypeObject.tp_init` slot. ::
391 (initproc)Noddy_init, /* tp_init */
393 The :c:member:`~PyTypeObject.tp_init` slot is exposed in Python as the :meth:`__init__` method. It
627 We also need to update the :c:member:`~PyTypeObject.tp_init` handler to only allow strings [#]_ to
863 if (PyList_Type.tp_init((PyObject *)self, args, kwds) < 0)

12