mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
gh-103712: Increase the length of the type name in AttributeError messages (#103713)
This commit is contained in:
parent
59c522f965
commit
543009347e
4 changed files with 7 additions and 7 deletions
|
@ -4328,7 +4328,7 @@ _Py_type_getattro_impl(PyTypeObject *type, PyObject *name, int * suppress_missin
|
|||
/* Give up */
|
||||
if (suppress_missing_attribute == NULL) {
|
||||
PyErr_Format(PyExc_AttributeError,
|
||||
"type object '%.50s' has no attribute '%U'",
|
||||
"type object '%.100s' has no attribute '%U'",
|
||||
type->tp_name, name);
|
||||
} else {
|
||||
// signal the caller we have not set an PyExc_AttributeError and gave up
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue