Home
last modified time | relevance | path

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

/third_party/python/Doc/includes/
Dsublist.c25 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0) in SubList_init()
38 .tp_init = (initproc) SubList_init,
Dtypestruct.h66 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,
/third_party/python/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.c779 if (type->tp_init == PyBaseObject_Type.tp_init) { in local_new()
912 if (Py_TYPE(self)->tp_init != PyBaseObject_Type.tp_init && in _ldict()
913 Py_TYPE(self)->tp_init((PyObject*)self, in _ldict()
D_asynciomodule.c1548 .tp_init = (initproc)_asyncio_Future___init__,
2505 .tp_init = (initproc)_asyncio_Task___init__,
D_collectionsmodule.c2232 result = PyDict_Type.tp_init(self, newargs, kwds); in defdict_init()
/third_party/python/Doc/extending/
Dnewtypes_tutorial.rst332 arguments, leaving the argument handling to initializer (a.k.a. ``tp_init``
336 ``tp_new`` shouldn't call ``tp_init`` explicitly, as the interpreter
393 by filling the :c:member:`~PyTypeObject.tp_init` slot. ::
395 .tp_init = (initproc) Custom_init,
397 The :c:member:`~PyTypeObject.tp_init` slot is exposed in Python as the
402 Unlike the ``tp_new`` handler, there is no guarantee that ``tp_init``
617 We also need to update the :c:member:`~PyTypeObject.tp_init` handler to only
839 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0)
/third_party/python/Objects/
Dtypeslots.inc61 {-1, offsetof(PyTypeObject, tp_init)},
Dtypeobject.c1132 if (type->tp_init != NULL) { in type_call()
1133 int res = type->tp_init(obj, args, kwds); in type_call()
4430 if (type->tp_init != object_init) { in object_init()
4454 if (type->tp_init == object_init) { in object_new()
5925 COPYSLOT(tp_init); in inherit_slots()
7951 FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)(void(*)(void))wrap_init,
Dexceptions.c959 if (type->tp_init != (initproc) OSError_init && in oserror_use_init()
2964 if (caught_type->tp_init != (initproc)BaseException_init || in _PyErr_TrySetFromCause()
/third_party/python/Include/cpython/
Dobject.h256 initproc tp_init; member
/third_party/alsa-lib/modules/mixer/simple/
Dpython.c713 tp_init: (initproc)pymelem_init,
894 tp_init: (initproc)pymixer_init,
/third_party/python/Doc/c-api/
Dtypeobj.rst122 …| :c:member:`~PyTypeObject.tp_init` | :c:type:`initproc` | __init__ …
1755 .. c:member:: initproc PyTypeObject.tp_init
1766 int tp_init(PyObject *self, PyObject *args, PyObject *kwds);
1772 The :c:member:`~PyTypeObject.tp_init` function, if not ``NULL``, is called when an instance is
1776 …:c:member:`~PyTypeObject.tp_init` function is called; if :c:member:`~PyTypeObject.tp_new` returns …
1777 subtype of the original type, the subtype's :c:member:`~PyTypeObject.tp_init` is called.
1831 ignored or repeated should be placed in the :c:member:`~PyTypeObject.tp_init` handler. A good
1834 deferred to :c:member:`~PyTypeObject.tp_init`.
2500 See :c:member:`~PyTypeObject.tp_init`.
2643 0, /* tp_init */
Dcall.rst26 :c:member:`~PyTypeObject.tp_new` and :c:member:`~PyTypeObject.tp_init`
/third_party/python/Modules/_ctypes/
Dstgdict.c22 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in PyCStgDict_init()
/third_party/libinput/src/
Devdev-mt-touchpad.c3606 tp_init(struct tp_dispatch *tp, in tp_init() function
3846 if (!tp_init(tp, device)) { in evdev_mt_touchpad_create()
/third_party/python/Doc/howto/
Dclinic.rst1398 tp_new and tp_init functions
1401 You can convert ``tp_new`` and ``tp_init`` functions. Just name
/third_party/python/Misc/NEWS.d/
D3.9.0a1.rst5661 and ``tp_init`` when calling the class itself.
/third_party/python/Misc/
DHISTORY2764 the type of tp_init.