mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.9] bpo-45083: Include the exception class qualname when formatting an exception (GH-28119) (GH-28135)
* bpo-45083: Include the exception class qualname when formatting an exception (GH-28119)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
(cherry picked from commit b4b6342848
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
98eb40828a
commit
41c2374024
7 changed files with 79 additions and 36 deletions
|
@ -3119,6 +3119,14 @@ PyType_FromSpec(PyType_Spec *spec)
|
|||
return PyType_FromSpecWithBases(spec, NULL);
|
||||
}
|
||||
|
||||
/* private in 3.10 and 3.9.8+; public in 3.11 */
|
||||
PyObject *
|
||||
_PyType_GetQualName(PyTypeObject *type)
|
||||
{
|
||||
return type_qualname(type, NULL);
|
||||
}
|
||||
|
||||
|
||||
void *
|
||||
PyType_GetSlot(PyTypeObject *type, int slot)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue