Searched refs:tp_repr (Results 1 – 18 of 18) sorted by relevance
/third_party/python/Doc/includes/ |
D | typestruct.h | 14 reprfunc tp_repr; member
|
/third_party/python/Doc/extending/ |
D | newtypes.rst | 163 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/ |
D | context.c | 1071 .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/ |
D | typeslots.inc | 67 {-1, offsetof(PyTypeObject, tp_repr)},
|
D | unionobject.c | 466 .tp_repr = union_repr,
|
D | structseq.c | 489 type->tp_repr = (reprfunc)structseq_repr; in _PyStructSequence_InitType()
|
D | genericaliasobject.c | 641 .tp_repr = ga_repr,
|
D | object.c | 422 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr() 440 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr()
|
D | typeobject.c | 4547 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/ |
D | object.h | 204 reprfunc tp_repr; member
|
/third_party/python/Doc/c-api/ |
D | exceptions.rst | 793 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`
|
D | typeobj.rst | 62 …| :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.c | 1366 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.c | 1538 .tp_repr = (reprfunc)FutureObj_repr, 2495 .tp_repr = (reprfunc)FutureObj_repr,
|
D | _testcapimodule.c | 1103 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.c | 2596 .tp_repr = (reprfunc)zoneinfo_repr,
|
D | _collectionsmodule.c | 2129 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
|
D | _datetimemodule.c | 3314 .tp_repr = (reprfunc) iso_calendar_date_repr,
|