mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Add missing 'is' to cmath.log() docstring (#102049)
Fix missing 'is' in cmath.log() docstring
This commit is contained in:
parent
9a07eff628
commit
71f614ef2a
2 changed files with 4 additions and 4 deletions
4
Modules/clinic/cmathmodule.c.h
generated
4
Modules/clinic/cmathmodule.c.h
generated
|
|
@ -644,7 +644,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__},
|
||||||
|
|
@ -982,4 +982,4 @@ skip_optional_kwonly:
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=0146c656e67f5d5f input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=87f609786ef270cd 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