mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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);
|
"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
|
int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue