mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
(Some) new error handling.
This commit is contained in:
parent
85a5fbbdfe
commit
3cf0ddfd94
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
#include "funcobject.h"
|
#include "funcobject.h"
|
||||||
#include "classobject.h"
|
#include "classobject.h"
|
||||||
#include "objimpl.h"
|
#include "objimpl.h"
|
||||||
|
#include "errors.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
OB_HEAD
|
OB_HEAD
|
||||||
|
@ -71,7 +72,7 @@ class_getattr(op, name)
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
errno = ESRCH;
|
err_setstr(NameError, name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue