mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
This commit is contained in:
parent
1a3284ed69
commit
217cfd1c86
123 changed files with 888 additions and 885 deletions
|
|
@ -2687,7 +2687,7 @@ imp_is_builtin(PyObject *self, PyObject *args)
|
|||
char *name;
|
||||
if (!PyArg_ParseTuple(args, "s:is_builtin", &name))
|
||||
return NULL;
|
||||
return PyInt_FromLong(is_builtin(name));
|
||||
return PyLong_FromLong(is_builtin(name));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
@ -2921,7 +2921,7 @@ setint(PyObject *d, char *name, int value)
|
|||
PyObject *v;
|
||||
int err;
|
||||
|
||||
v = PyInt_FromLong((long)value);
|
||||
v = PyLong_FromLong((long)value);
|
||||
err = PyDict_SetItemString(d, name, v);
|
||||
Py_XDECREF(v);
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue