/external/python/cpython3/Doc/includes/ |
D | sublist.c | 24 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0) in SubList_init() 37 .tp_init = (initproc) SubList_init,
|
D | typestruct.h | 63 initproc tp_init; member
|
D | custom2.c | 105 .tp_init = (initproc) Custom_init,
|
D | custom3.c | 155 .tp_init = (initproc) Custom_init,
|
D | custom4.c | 167 .tp_init = (initproc) Custom_init,
|
/external/python/cpython2/Modules/ |
D | threadmodule.c | 336 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()
|
D | xxsubtype.c | 85 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/ |
D | xxsubtype.c | 85 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.c | 706 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/ |
D | shoddy.c | 26 if (PyList_Type.tp_init((PyObject *)self, args, kwds) < 0) in Shoddy_init()
|
D | typestruct.h | 65 initproc tp_init; member
|
/external/python/cpython3/Objects/ |
D | typeslots.inc | 61 offsetof(PyHeapTypeObject, ht_type.tp_init),
|
D | typeobject.c | 948 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/ |
D | newtypes_tutorial.rst | 325 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/ |
D | sysmodule.c | 1497 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.c | 115 if (((PyTypeObject *)PyExc_IOError)->tp_init( in blockingioerror_init()
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 515 …: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/ |
D | sysmodule.c | 2380 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/ |
D | stgdict.c | 22 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in PyCStgDict_init()
|
/external/python/cpython3/Modules/_ctypes/ |
D | stgdict.c | 22 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in PyCStgDict_init()
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 850 .. 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/ |
D | typeobject.c | 764 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/ |
D | object.h | 388 initproc tp_init; member
|
/external/python/cpython3/Include/ |
D | object.h | 410 initproc tp_init; member
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 389 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)
|