Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 22918:15c18bc9d715 legacy-trunk
is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 09 Apr 2002 18:00:58 +0000 |
| parents | a561ff1b4ffa |
| children | 4f9d5ea4f37d |
line wrap: on
line diff
--- a/Python/import.c Tue Apr 09 14:54:26 2002 +0000 +++ b/Python/import.c Tue Apr 09 18:00:58 2002 +0000 @@ -2295,7 +2295,7 @@ 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 *
