mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -946,7 +946,7 @@ local_setattro(localobject *self, PyObject *name, PyObject *v)
|
|||
}
|
||||
if (r == 1) {
|
||||
PyErr_Format(PyExc_AttributeError,
|
||||
"'%.50s' object attribute '%U' is read-only",
|
||||
"'%.100s' object attribute '%U' is read-only",
|
||||
Py_TYPE(self)->tp_name, name);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue