Searched refs:tp_repr (Results 1 – 16 of 16) sorted by relevance
/third_party/python/Doc/includes/ |
D | typestruct.h | 14 reprfunc tp_repr; member
|
/third_party/python/Objects/ |
D | typeslots.inc | 67 offsetof(PyHeapTypeObject, ht_type.tp_repr),
|
D | structseq.c | 409 type->tp_repr = (reprfunc)structseq_repr; in PyStructSequence_InitType2()
|
D | genericaliasobject.c | 623 .tp_repr = ga_repr,
|
D | object.c | 402 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr() 420 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr()
|
D | typeobject.c | 3965 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/ |
D | context.c | 1055 .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/ |
D | newtypes.rst | 151 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/ |
D | object.h | 206 reprfunc tp_repr; member
|
/third_party/python/Doc/c-api/ |
D | exceptions.rst | 749 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`
|
D | typeobj.rst | 62 …| :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.c | 1363 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.c | 1535 .tp_repr = (reprfunc)FutureObj_repr, 2537 .tp_repr = (reprfunc)FutureObj_repr,
|
D | _zoneinfo.c | 2601 .tp_repr = (reprfunc)zoneinfo_repr,
|
D | _collectionsmodule.c | 2106 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
|
D | _datetimemodule.c | 3323 .tp_repr = (reprfunc) iso_calendar_date_repr,
|