Searched refs:tp_str (Results 1 – 11 of 11) sorted by relevance
25 reprfunc tp_str; member
423 if (Py_TYPE(v)->tp_str == NULL) in _PyObject_Str()430 res = (*Py_TYPE(v)->tp_str)(v); in _PyObject_Str()534 if (Py_TYPE(v)->tp_str != NULL) in PyObject_Unicode()535 res = (*Py_TYPE(v)->tp_str)(v); in PyObject_Unicode()
126 if (Py_TYPE(self)->tp_str != (reprfunc)BaseException_str) { in BaseException_unicode()130 str = Py_TYPE(self)->tp_str((PyObject*)self); in BaseException_unicode()
3992 COPYSLOT(tp_str);5989 TPSLOT("__str__", tp_str, slot_tp_str, wrap_unaryfunc,
4024 result = Py_TYPE(val)->tp_str(val); in _PyString_FormatLong()
4111 ((PyTypeObject *)PySSLErrorObject)->tp_str = (reprfunc)SSLError_str; in init_ssl()4135 ((PyTypeObject *)PySSLZeroReturnErrorObject)->tp_str = (reprfunc)SSLError_str; in init_ssl()4136 ((PyTypeObject *)PySSLWantReadErrorObject)->tp_str = (reprfunc)SSLError_str; in init_ssl()4137 ((PyTypeObject *)PySSLWantWriteErrorObject)->tp_str = (reprfunc)SSLError_str; in init_ssl()4138 ((PyTypeObject *)PySSLSyscallErrorObject)->tp_str = (reprfunc)SSLError_str; in init_ssl()4139 ((PyTypeObject *)PySSLEOFErrorObject)->tp_str = (reprfunc)SSLError_str; in init_ssl()
348 reprfunc tp_str; member
98 0, /*tp_str*/1039 :c:member:`~PyTypeObject.tp_str` and :c:member:`~PyTypeObject.tp_repr` handlers. ::1042 reprfunc tp_str;1060 The :c:member:`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:member:`~PyTypeObject.tp…1064 consumption. If :c:member:`~PyTypeObject.tp_str` is not specified, the :c:member:`~PyTypeObject.tp…
204 …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.214 flag bit is set, the instance should be printed the same way as :c:member:`~PyTypeObject.tp_str`222 :c:member:`~PyTypeObject.tp_repr` and :c:member:`~PyTypeObject.tp_str` for printing.362 .. c:member:: reprfunc PyTypeObject.tp_str
10626 from C code. Nor did object's tp_str consider that a type's tp_str
6740 PyObject_Str(obj) in that it tries to use __str__/tp_str15228 is called, and tp_str defines how an object's str() is computed.