commit | 3cf0ddfd94fb683ba265c40f60bd1e329848f1c6 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sun Oct 14 19:58:09 1990 +0000 |
committer | Guido van Rossum <guido@python.org> | Sun Oct 14 19:58:09 1990 +0000 |
tree | 9d14fab311e60f503cdc9fbec8ac62e985462db5 | |
parent | 85a5fbbdfea617f6cc8fae82c9e8c2b5c424436d [diff] [blame] |
(Some) new error handling.
diff --git a/Objects/classobject.c b/Objects/classobject.c index 9a55280..6ed97a9 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c
@@ -11,6 +11,7 @@ #include "funcobject.h" #include "classobject.h" #include "objimpl.h" +#include "errors.h" typedef struct { OB_HEAD @@ -71,7 +72,7 @@ return v; } } - errno = ESRCH; + err_setstr(NameError, name); return NULL; }