[Python-checkins] bpo-38237: Shorter docstring (GH-16322) (GH-16323)

Raymond Hettinger webhook-mailer at python.org
Sat Sep 21 16:32:12 EDT 2019


https://github.com/python/cpython/commit/24231ca75c721c8167a7394deb300727ccdcba51
commit: 24231ca75c721c8167a7394deb300727ccdcba51
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2019-09-21T13:32:07-07:00
summary:

bpo-38237: Shorter docstring (GH-16322) (GH-16323)

(cherry picked from commit b104ecbbafc14f9ca0c8371963c45dca893f6b75)

Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com>

files:
M Python/bltinmodule.c
M Python/clinic/bltinmodule.c.h

diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 0d3f7edb1d90..90a6b9fc6e24 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1801,7 +1801,7 @@ pow as builtin_pow
     exp: object
     mod: object = None
 
-Equivalent to base**exp (with two arguments) or base**exp % mod (with three arguments)
+Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments
 
 Some types, such as ints, are able to use a more efficient algorithm when
 invoked using the three argument form.
@@ -1810,7 +1810,7 @@ invoked using the three argument form.
 static PyObject *
 builtin_pow_impl(PyObject *module, PyObject *base, PyObject *exp,
                  PyObject *mod)
-/*[clinic end generated code: output=3ca1538221bbf15f input=bd72d0a0ec8e5eb5]*/
+/*[clinic end generated code: output=3ca1538221bbf15f input=435dbd48a12efb23]*/
 {
     return PyNumber_Power(base, exp, mod);
 }
diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h
index f6c5b7c1c8bd..d15af1f7f377 100644
--- a/Python/clinic/bltinmodule.c.h
+++ b/Python/clinic/bltinmodule.c.h
@@ -611,7 +611,7 @@ PyDoc_STRVAR(builtin_pow__doc__,
 "pow($module, /, base, exp, mod=None)\n"
 "--\n"
 "\n"
-"Equivalent to base**exp (with two arguments) or base**exp % mod (with three arguments)\n"
+"Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments\n"
 "\n"
 "Some types, such as ints, are able to use a more efficient algorithm when\n"
 "invoked using the three argument form.");
@@ -855,4 +855,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
 exit:
     return return_value;
 }
-/*[clinic end generated code: output=1e2a6185e05ecd11 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=29686a89b739d600 input=a9049054013a1b77]*/



More information about the Python-checkins mailing list