[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:
Mark Dickinson 2023-02-26 14:55:44 +00:00 committed by GitHub
parent 2c4fc87ac1
commit eb5565918a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -638,7 +638,7 @@ PyDoc_STRVAR(cmath_log__doc__,
"\n"
"log(z[, base]) -> the logarithm of z to the given base.\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 \
{"log", _PyCFunction_CAST(cmath_log), METH_FASTCALL, cmath_log__doc__},
@ -953,4 +953,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
/*[clinic end generated code: output=b8e445fcd2a3da65 input=a9049054013a1b77]*/
/*[clinic end generated code: output=c6e3f37cd562c942 input=a9049054013a1b77]*/

View file

@ -957,12 +957,12 @@ cmath.log
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]*/
static PyObject *
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;