diff options
author | Raymond Hettinger <python@rcn.com> | 2011-11-20 18:38:53 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-11-20 18:38:53 (GMT) |
commit | 7d1483cbadbe48620964348a2039690624e7dc8e (patch) | |
tree | 3b85829d12ab16bda5f6656cab3170b625630912 /Objects/abstract.c | |
parent | b19284f6eb08b864e606b60897cb12f2015c8fbb (diff) | |
download | cpython-7d1483cbadbe48620964348a2039690624e7dc8e.zip cpython-7d1483cbadbe48620964348a2039690624e7dc8e.tar.gz cpython-7d1483cbadbe48620964348a2039690624e7dc8e.tar.bz2 |
Make an error message more understandable and consistent with other error messages.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 1e79ddf..81c19e1 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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 |