Home
last modified time | relevance | path

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

/external/python/cpython2/Doc/includes/
Dtypestruct.h13 reprfunc tp_repr; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h14 reprfunc tp_repr; member
/external/python/cpython3/Objects/
Dtypeslots.inc67 offsetof(PyHeapTypeObject, ht_type.tp_repr),
Dstructseq.c406 type->tp_repr = (reprfunc)structseq_repr; in PyStructSequence_InitType2()
Dobject.c521 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr()
536 res = (*v->ob_type->tp_repr)(v); in PyObject_Repr()
Dtypeobject.c3828 f = Py_TYPE(self)->tp_repr; in object_str()
5155 COPYSLOT(tp_repr); in inherit_slots()
6938 TPSLOT("__repr__", tp_repr, slot_tp_repr, wrap_unaryfunc,
/external/python/cpython3/Python/
Dcontext.c1047 .tp_repr = (reprfunc)contextvar_tp_repr,
1181 .tp_repr = (reprfunc)token_tp_repr,
1232 .tp_repr = context_token_missing_tp_repr,
/external/python/cpython3/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
/external/python/cpython3/Include/cpython/
Dobject.h190 reprfunc tp_repr; member
/external/python/cpython3/Doc/c-api/
Dexceptions.rst727 Properly implementing :c:member:`~PyTypeObject.tp_repr` for container types requires
729 :c:member:`~PyTypeObject.tp_repr` also needs to track objects to prevent cycles. The
735 Called at the beginning of the :c:member:`~PyTypeObject.tp_repr` implementation to
739 positive integer. In that case the :c:member:`~PyTypeObject.tp_repr` implementation
745 is reached. In that case the :c:member:`~PyTypeObject.tp_repr` implementation should
748 Otherwise, the function returns zero and the :c:member:`~PyTypeObject.tp_repr`
Dtypeobj.rst62 …| :c:member:`~PyTypeObject.tp_repr` | :c:type:`reprfunc` | __repr__ …
798 .. c:member:: reprfunc PyTypeObject.tp_repr
807 PyObject *tp_repr(PyObject *self);
2394 See :c:member:`~PyTypeObject.tp_repr`.
2487 .tp_repr = (reprfunc)myobj_repr,
2503 (reprfunc)myobj_repr, /* tp_repr */
2556 .tp_repr = (reprfunc)myobj_repr,
2577 .tp_repr = (reprfunc)myobj_repr,
/external/python/cpython3/Modules/
D_json.c1431 return PyFloat_Type.tp_repr(obj); in encoder_encode_float()
1485 PyObject *encoded = PyLong_Type.tp_repr(obj); in encoder_listencode_obj()
1649 kstr = PyLong_Type.tp_repr(key); in encoder_listencode_dict()
D_asynciomodule.c1434 .tp_repr = (reprfunc)FutureObj_repr,
2493 .tp_repr = (reprfunc)FutureObj_repr,
D_collectionsmodule.c2096 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
/external/python/cpython2/Doc/extending/
Dnewtypes.rst91 0, /* tp_repr */
1043 :c:member:`~PyTypeObject.tp_str` and :c:member:`~PyTypeObject.tp_repr` handlers. ::
1045 reprfunc tp_repr;
1049 The :c:member:`~PyTypeObject.tp_repr` handler should return a string object containing a
1060 If no :c:member:`~PyTypeObject.tp_repr` handler is specified, the interpreter will supply a
1064 …`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:member:`~PyTypeObject.tp_repr` handler
1067 to the :c:member:`~PyTypeObject.tp_repr` function, but the resulting string is intended for human
1068 …:c:member:`~PyTypeObject.tp_str` is not specified, the :c:member:`~PyTypeObject.tp_repr` handler is
/external/python/cpython2/Include/
Dobject.h336 reprfunc tp_repr; member
/external/python/cpython2/Objects/
Dobject.c376 else if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr()
385 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr()
Dtypeobject.c3119 f = Py_TYPE(self)->tp_repr; in object_str()
4052 COPYSLOT(tp_repr);
6046 TPSLOT("__repr__", tp_repr, slot_tp_repr, wrap_unaryfunc,
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst204 …instance's :c:member:`~PyTypeObject.tp_repr` or :c:member:`~PyTypeObject.tp_str` function is calle…
207 … different output than :c:member:`~PyTypeObject.tp_repr` or :c:member:`~PyTypeObject.tp_str` would.
216 should be printed the same was as :c:member:`~PyTypeObject.tp_repr` would format it. It should
222 :c:member:`~PyTypeObject.tp_repr` and :c:member:`~PyTypeObject.tp_str` for printing.
273 .. c:member:: reprfunc PyTypeObject.tp_repr
/external/python/cpython2/Modules/
D_collectionsmodule.c1607 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
D_json.c1942 return PyFloat_Type.tp_repr(obj); in encoder_encode_float()
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst565 Tuple's tp_repr did not take into account the possibility of having a