mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
New errors.
This commit is contained in:
parent
4ab9b4c9ad
commit
2a9096b5f9
7 changed files with 137 additions and 126 deletions
|
|
@ -36,7 +36,7 @@ getfuncnode(op)
|
|||
object *op;
|
||||
{
|
||||
if (!is_funcobject(op)) {
|
||||
errno = EBADF;
|
||||
err_badcall();
|
||||
return NULL;
|
||||
}
|
||||
return ((funcobject *) op) -> func_node;
|
||||
|
|
@ -47,7 +47,7 @@ getfuncglobals(op)
|
|||
object *op;
|
||||
{
|
||||
if (!is_funcobject(op)) {
|
||||
errno = EBADF;
|
||||
err_badcall();
|
||||
return NULL;
|
||||
}
|
||||
return ((funcobject *) op) -> func_globals;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue