mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Merge
This commit is contained in:
commit
3b09cd64e0
4 changed files with 17 additions and 2 deletions
|
@ -2043,7 +2043,7 @@ builtin_round(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (ndigits == NULL)
|
||||
if (ndigits == NULL || ndigits == Py_None)
|
||||
result = PyObject_CallFunctionObjArgs(round, NULL);
|
||||
else
|
||||
result = PyObject_CallFunctionObjArgs(round, ndigits, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue