mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
parent
fb4f8257bf
commit
ab078e9ed1
20 changed files with 92 additions and 105 deletions
|
@ -859,9 +859,9 @@ type_repr(PyTypeObject *type)
|
|||
}
|
||||
|
||||
if (mod != NULL && _PyUnicode_CompareWithId(mod, &PyId_builtins))
|
||||
rtn = PyUnicode_FromFormat("<class '%U.%U' at %p>", mod, name, type);
|
||||
else
|
||||
rtn = PyUnicode_FromFormat("<class '%s' at %p>", type->tp_name, type);
|
||||
rtn = PyUnicode_FromFormat("<class '%U.%U'>", mod, name);
|
||||
else
|
||||
rtn = PyUnicode_FromFormat("<class '%s'>", type->tp_name);
|
||||
|
||||
Py_XDECREF(mod);
|
||||
Py_DECREF(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue