mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Backport METH_FASTCALL from Python 3.7 (#328)
This commit is contained in:
parent
70c97f598b
commit
cf73bbd678
102 changed files with 2896 additions and 3301 deletions
4
third_party/python/Objects/longobject.c
vendored
4
third_party/python/Objects/longobject.c
vendored
|
@ -4907,7 +4907,7 @@ long_get1(PyLongObject *v, void *context) {
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
long__format__(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||
long__format__(PyObject *self, PyObject **args, Py_ssize_t nargs)
|
||||
{
|
||||
PyObject *format_spec;
|
||||
_PyUnicodeWriter writer;
|
||||
|
@ -5026,7 +5026,7 @@ _PyLong_DivmodNear(PyObject *a, PyObject *b)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
long_round(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||
long_round(PyObject *self, PyObject **args, Py_ssize_t nargs)
|
||||
{
|
||||
PyObject *o_ndigits=NULL, *temp, *result, *ndigits;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue