commit | 7d1483cbadbe48620964348a2039690624e7dc8e | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Nov 20 10:38:53 2011 -0800 |
committer | Raymond Hettinger <python@rcn.com> | Sun Nov 20 10:38:53 2011 -0800 |
tree | 3b85829d12ab16bda5f6656cab3170b625630912 | |
parent | b19284f6eb08b864e606b60897cb12f2015c8fbb [diff] |
Make an error message more understandable and consistent with other error messages.
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 @@ "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