Commit 55a14b75 authored by Raymond Hettinger's avatar Raymond Hettinger

Make an error message more understandable and consistent with other error messages.

parent 74aeaab2
...@@ -156,7 +156,7 @@ PyObject_GetItem(PyObject *o, PyObject *key) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment