mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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.
This commit is contained in:
parent
d057b896f9
commit
279f44678c
47 changed files with 256 additions and 257 deletions
|
@ -944,18 +944,18 @@ cmath_tanh_impl(PyObject *module, Py_complex z)
|
|||
/*[clinic input]
|
||||
cmath.log
|
||||
|
||||
x: Py_complex
|
||||
y_obj: object = NULL
|
||||
z as x: Py_complex
|
||||
base as y_obj: object = NULL
|
||||
/
|
||||
|
||||
The logarithm of z to the given base.
|
||||
log(z[, base]) -> the logarithm of z to the given base.
|
||||
|
||||
If the base not specified, returns the natural logarithm (base e) of z.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj)
|
||||
/*[clinic end generated code: output=4effdb7d258e0d94 input=ee0e823a7c6e68ea]*/
|
||||
/*[clinic end generated code: output=4effdb7d258e0d94 input=230ed3a71ecd000a]*/
|
||||
{
|
||||
Py_complex y;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue