summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwain Davies <116417456+OTheDev@users.noreply.github.com>2023-02-19 15:00:59 (GMT)
committerGitHub <noreply@github.com>2023-02-19 15:00:59 (GMT)
commit71f614ef2a3d66213b9cae807cbbc1ed03741221 (patch)
treeaa85ddbd736cfef09c35e862f9d6c09b4d88c1cc
parent9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552 (diff)
downloadcpython-71f614ef2a3d66213b9cae807cbbc1ed03741221.zip
cpython-71f614ef2a3d66213b9cae807cbbc1ed03741221.tar.gz
cpython-71f614ef2a3d66213b9cae807cbbc1ed03741221.tar.bz2
Add missing 'is' to `cmath.log()` docstring (#102049)
Fix missing 'is' in cmath.log() docstring
-rw-r--r--Modules/clinic/cmathmodule.c.h4
-rw-r--r--Modules/cmathmodule.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/clinic/cmathmodule.c.h b/Modules/clinic/cmathmodule.c.h
index b1da945..941448e 100644
--- a/Modules/clinic/cmathmodule.c.h
+++ b/Modules/clinic/cmathmodule.c.h
@@ -644,7 +644,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__},
@@ -982,4 +982,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
-/*[clinic end generated code: output=0146c656e67f5d5f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=87f609786ef270cd input=a9049054013a1b77]*/
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
index 2038ac2..53e3406 100644
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -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;