diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2019-09-14 12:24:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-14 12:24:05 +0300 |
| commit | 279f44678c8b84a183f9eeb85e0b086228154497 (patch) | |
| tree | 9cacd41975bf15ab7a94fc5ba6a2df57f8e02ee5 /Python/clinic/bltinmodule.c.h | |
| parent | d057b896f97e6d7447b9bf9246770c41cf205299 (diff) | |
| download | cpython-git-279f44678c8b84a183f9eeb85e0b086228154497.tar.gz | |
bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933)
In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values
(like in the optional third parameter of getattr). "None" should be used if None is accepted
as argument and passing None has the same effect as not passing the argument at all.
Diffstat (limited to 'Python/clinic/bltinmodule.c.h')
| -rw-r--r-- | Python/clinic/bltinmodule.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index 49608ccf3d..b936b0cf37 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -719,7 +719,7 @@ builtin_round(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec PyObject *argsbuf[2]; Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 1; PyObject *number; - PyObject *ndigits = NULL; + PyObject *ndigits = Py_None; args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf); if (!args) { @@ -849,4 +849,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=1927f3c9abd00c35 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4e118c2cd2cd98f3 input=a9049054013a1b77]*/ |
