Home
last modified time | relevance | path

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

/third_party/python/Doc/includes/
Dtypestruct.h14 reprfunc tp_repr; member
/third_party/python/Doc/extending/
Dnewtypes.rst163 reprfunc tp_repr;
166 The :c:member:`~PyTypeObject.tp_repr` handler should return a string object containing a
177 If no :c:member:`~PyTypeObject.tp_repr` handler is specified, the interpreter will supply a
181 …`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:member:`~PyTypeObject.tp_repr` handler
184 to the :c:member:`~PyTypeObject.tp_repr` function, but the resulting string is intended for human
185 …:c:member:`~PyTypeObject.tp_str` is not specified, the :c:member:`~PyTypeObject.tp_repr` handler is
/third_party/python/Python/
Dcontext.c1071 .tp_repr = (reprfunc)contextvar_tp_repr,
1212 .tp_repr = (reprfunc)token_tp_repr,
1263 .tp_repr = context_token_missing_tp_repr,
/third_party/python/Objects/
Dtypeslots.inc67 {-1, offsetof(PyTypeObject, tp_repr)},
Dunionobject.c466 .tp_repr = union_repr,
Dstructseq.c489 type->tp_repr = (reprfunc)structseq_repr; in _PyStructSequence_InitType()
Dgenericaliasobject.c641 .tp_repr = ga_repr,
Dobject.c422 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr()
440 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr()
Dtypeobject.c4547 f = Py_TYPE(self)->tp_repr; in object_str()
5873 COPYSLOT(tp_repr); in inherit_slots()
7911 TPSLOT("__repr__", tp_repr, slot_tp_repr, wrap_unaryfunc,
/third_party/python/Include/cpython/
Dobject.h204 reprfunc tp_repr; member
/third_party/python/Doc/c-api/
Dexceptions.rst793 Properly implementing :c:member:`~PyTypeObject.tp_repr` for container types requires
795 :c:member:`~PyTypeObject.tp_repr` also needs to track objects to prevent cycles. The
801 Called at the beginning of the :c:member:`~PyTypeObject.tp_repr` implementation to
805 positive integer. In that case the :c:member:`~PyTypeObject.tp_repr` implementation
811 is reached. In that case the :c:member:`~PyTypeObject.tp_repr` implementation should
814 Otherwise, the function returns zero and the :c:member:`~PyTypeObject.tp_repr`
Dtypeobj.rst62 …| :c:member:`~PyTypeObject.tp_repr` | :c:type:`reprfunc` | __repr__ …
802 .. c:member:: reprfunc PyTypeObject.tp_repr
811 PyObject *tp_repr(PyObject *self);
2504 See :c:member:`~PyTypeObject.tp_repr`.
2601 .tp_repr = (reprfunc)myobj_repr,
2617 (reprfunc)myobj_repr, /* tp_repr */
2670 .tp_repr = (reprfunc)myobj_repr,
2691 .tp_repr = (reprfunc)myobj_repr,
/third_party/python/Modules/
D_json.c1366 return PyFloat_Type.tp_repr(obj); in encoder_encode_float()
1420 PyObject *encoded = PyLong_Type.tp_repr(obj); in encoder_listencode_obj()
1583 kstr = PyLong_Type.tp_repr(key); in encoder_listencode_dict()
D_asynciomodule.c1538 .tp_repr = (reprfunc)FutureObj_repr,
2495 .tp_repr = (reprfunc)FutureObj_repr,
D_testcapimodule.c1103 reprfunc tp_repr = PyType_GetSlot(&PyLong_Type, Py_tp_repr); in test_get_statictype_slots() local
1104 if (PyLong_Type.tp_repr != tp_repr) { in test_get_statictype_slots()
D_zoneinfo.c2596 .tp_repr = (reprfunc)zoneinfo_repr,
D_collectionsmodule.c2129 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
D_datetimemodule.c3314 .tp_repr = (reprfunc) iso_calendar_date_repr,