Home
last modified time | relevance | path

Searched refs:tp_repr (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Doc/includes/
Dtypestruct.h14 reprfunc tp_repr; member
/third_party/python/Objects/
Dtypeslots.inc67 offsetof(PyHeapTypeObject, ht_type.tp_repr),
Dstructseq.c409 type->tp_repr = (reprfunc)structseq_repr; in PyStructSequence_InitType2()
Dgenericaliasobject.c623 .tp_repr = ga_repr,
Dobject.c402 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr()
420 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr()
Dtypeobject.c3965 f = Py_TYPE(self)->tp_repr; in object_str()
5293 COPYSLOT(tp_repr); in inherit_slots()
7128 TPSLOT("__repr__", tp_repr, slot_tp_repr, wrap_unaryfunc,
/third_party/python/Python/
Dcontext.c1055 .tp_repr = (reprfunc)contextvar_tp_repr,
1196 .tp_repr = (reprfunc)token_tp_repr,
1247 .tp_repr = context_token_missing_tp_repr,
/third_party/python/Doc/extending/
Dnewtypes.rst151 reprfunc tp_repr;
154 The :c:member:`~PyTypeObject.tp_repr` handler should return a string object containing a
165 If no :c:member:`~PyTypeObject.tp_repr` handler is specified, the interpreter will supply a
169 …`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:member:`~PyTypeObject.tp_repr` handler
172 to the :c:member:`~PyTypeObject.tp_repr` function, but the resulting string is intended for human
173 …:c:member:`~PyTypeObject.tp_str` is not specified, the :c:member:`~PyTypeObject.tp_repr` handler is
/third_party/python/Include/cpython/
Dobject.h206 reprfunc tp_repr; member
/third_party/python/Doc/c-api/
Dexceptions.rst749 Properly implementing :c:member:`~PyTypeObject.tp_repr` for container types requires
751 :c:member:`~PyTypeObject.tp_repr` also needs to track objects to prevent cycles. The
757 Called at the beginning of the :c:member:`~PyTypeObject.tp_repr` implementation to
761 positive integer. In that case the :c:member:`~PyTypeObject.tp_repr` implementation
767 is reached. In that case the :c:member:`~PyTypeObject.tp_repr` implementation should
770 Otherwise, the function returns zero and the :c:member:`~PyTypeObject.tp_repr`
Dtypeobj.rst62 …| :c:member:`~PyTypeObject.tp_repr` | :c:type:`reprfunc` | __repr__ …
779 .. c:member:: reprfunc PyTypeObject.tp_repr
788 PyObject *tp_repr(PyObject *self);
2376 See :c:member:`~PyTypeObject.tp_repr`.
2469 .tp_repr = (reprfunc)myobj_repr,
2485 (reprfunc)myobj_repr, /* tp_repr */
2538 .tp_repr = (reprfunc)myobj_repr,
2559 .tp_repr = (reprfunc)myobj_repr,
/third_party/python/Modules/
D_json.c1363 return PyFloat_Type.tp_repr(obj); in encoder_encode_float()
1417 PyObject *encoded = PyLong_Type.tp_repr(obj); in encoder_listencode_obj()
1581 kstr = PyLong_Type.tp_repr(key); in encoder_listencode_dict()
D_asynciomodule.c1535 .tp_repr = (reprfunc)FutureObj_repr,
2537 .tp_repr = (reprfunc)FutureObj_repr,
D_zoneinfo.c2601 .tp_repr = (reprfunc)zoneinfo_repr,
D_collectionsmodule.c2106 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
D_datetimemodule.c3323 .tp_repr = (reprfunc) iso_calendar_date_repr,