mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Make an error message more understandable and consistent with other error messages.
This commit is contained in:
parent
b19284f6eb
commit
7d1483cbad
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ PyObject_GetItem(PyObject *o, PyObject *key)
|
|||
"be integer, not '%.200s'", key);
|
||||
}
|
||||
|
||||
return type_error("'%.200s' object is not subscriptable", o);
|
||||
return type_error("'%.200s' object has no attribute '__getitem__'", o);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue