mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]
This commit is contained in:
parent
eee12e9aba
commit
50ee94fd41
1 changed files with 1 additions and 1 deletions
|
@ -2295,7 +2295,7 @@ imp_is_builtin(PyObject *self, PyObject *args)
|
|||
char *name;
|
||||
if (!PyArg_ParseTuple(args, "s:is_builtin", &name))
|
||||
return NULL;
|
||||
return PyBool_FromLong(is_builtin(name));
|
||||
return PyInt_FromLong(is_builtin(name));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue