Kaydet (Commit) 50ee94fd authored tarafından Guido van Rossum's avatar Guido van Rossum

is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]

üst eee12e9a
......@@ -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 *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment