mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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
|
@ -493,7 +493,7 @@ thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs)
|
|||
PyMem_DEL(boot);
|
||||
return NULL;
|
||||
}
|
||||
return PyInt_FromLong(ident);
|
||||
return PyLong_FromLong(ident);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(start_new_doc,
|
||||
|
@ -571,7 +571,7 @@ thread_get_ident(PyObject *self)
|
|||
PyErr_SetString(ThreadError, "no current thread ident");
|
||||
return NULL;
|
||||
}
|
||||
return PyInt_FromLong(ident);
|
||||
return PyLong_FromLong(ident);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(get_ident_doc,
|
||||
|
@ -616,7 +616,7 @@ thread_stack_size(PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
return PyInt_FromSsize_t((Py_ssize_t) old_size);
|
||||
return PyLong_FromSsize_t((Py_ssize_t) old_size);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(stack_size_doc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue