]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(Some) new error handling.
authorGuido van Rossum <guido@python.org>
Sun, 14 Oct 1990 19:58:09 +0000 (19:58 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 14 Oct 1990 19:58:09 +0000 (19:58 +0000)
Objects/classobject.c

index 9a5528032303362e65c24ae57bd3ffe124f67db5..6ed97a92884c38f6e69459e1b8b79462aa95c933 100644 (file)
@@ -11,6 +11,7 @@
 #include "funcobject.h"
 #include "classobject.h"
 #include "objimpl.h"
+#include "errors.h"
 
 typedef struct {
        OB_HEAD
@@ -71,7 +72,7 @@ class_getattr(op, name)
                                return v;
                }
        }
-       errno = ESRCH;
+       err_setstr(NameError, name);
        return NULL;
 }