mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
[3.11] Add missing 'is' to cmath.log()
docstring (GH-102049) (#102279)
Fix missing 'is' in cmath.log() docstring.
(cherry picked from commit 71f614ef2a
)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
This commit is contained in:
parent
2c4fc87ac1
commit
eb5565918a
2 changed files with 4 additions and 4 deletions
4
Modules/clinic/cmathmodule.c.h
generated
4
Modules/clinic/cmathmodule.c.h
generated
|
@ -638,7 +638,7 @@ PyDoc_STRVAR(cmath_log__doc__,
|
||||||
"\n"
|
"\n"
|
||||||
"log(z[, base]) -> the logarithm of z to the given base.\n"
|
"log(z[, base]) -> the logarithm of z to the given base.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If the base not specified, returns the natural logarithm (base e) of z.");
|
"If the base is not specified, returns the natural logarithm (base e) of z.");
|
||||||
|
|
||||||
#define CMATH_LOG_METHODDEF \
|
#define CMATH_LOG_METHODDEF \
|
||||||
{"log", _PyCFunction_CAST(cmath_log), METH_FASTCALL, cmath_log__doc__},
|
{"log", _PyCFunction_CAST(cmath_log), METH_FASTCALL, cmath_log__doc__},
|
||||||
|
@ -953,4 +953,4 @@ skip_optional_kwonly:
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=b8e445fcd2a3da65 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=c6e3f37cd562c942 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -957,12 +957,12 @@ cmath.log
|
||||||
|
|
||||||
log(z[, base]) -> 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.
|
If the base is not specified, returns the natural logarithm (base e) of z.
|
||||||
[clinic start generated code]*/
|
[clinic start generated code]*/
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj)
|
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj)
|
||||||
/*[clinic end generated code: output=4effdb7d258e0d94 input=230ed3a71ecd000a]*/
|
/*[clinic end generated code: output=4effdb7d258e0d94 input=e1f81d4fcfd26497]*/
|
||||||
{
|
{
|
||||||
Py_complex y;
|
Py_complex y;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue