Commit 7d1483cb authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent b19284f6
......@@ -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
......
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