diff options
author | Guido van Rossum <guido@python.org> | 1995-01-07 11:54:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-07 11:54:44 (GMT) |
commit | 016564ab51f991e7d67a62f4aa079df376ae549f (patch) | |
tree | 4fdff068193aab48698d31b963e1e035f5e62ffc /Objects | |
parent | 5e56997969435c98a79dc12a6d0c12c2b487f834 (diff) | |
download | cpython-016564ab51f991e7d67a62f4aa079df376ae549f.zip cpython-016564ab51f991e7d67a62f4aa079df376ae549f.tar.gz cpython-016564ab51f991e7d67a62f4aa079df376ae549f.tar.bz2 |
attribute-less object is AttributeError, not TypeError
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index d1bc681..424caeb 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -254,7 +254,7 @@ getattr(v, name) char *name; { if (v->ob_type->tp_getattr == NULL) { - err_setstr(TypeError, "attribute-less object"); + err_setstr(AttributeError, "attribute-less object"); return NULL; } else { |