From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 22 Mar 2025 08:01:47 +0000 (+0100) Subject: [3.12] gh-131457: Fix typo in BNF description of function signatures (GH-131460)... X-Git-Tag: v3.12.10~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1e238433517ee171d348f780365db030b7b2d2f;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-131457: Fix typo in BNF description of function signatures (GH-131460) (#131576) gh-131457: Fix typo in BNF description of function signatures (GH-131460) (cherry picked from commit 8b7d20d3a9dc53344e3803507deafc26b5c09ca8) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index f399292aac09..701e006ad10e 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -1218,7 +1218,7 @@ A function definition defines a user-defined function object (see section parameter_list_no_posonly: `defparameter` ("," `defparameter`)* ["," [`parameter_list_starargs`]] : | `parameter_list_starargs` parameter_list_starargs: "*" [`star_parameter`] ("," `defparameter`)* ["," [`parameter_star_kwargs`]] - : "*" ("," `defparameter`)+ ["," [`parameter_star_kwargs`]] + : | "*" ("," `defparameter`)+ ["," [`parameter_star_kwargs`]] : | `parameter_star_kwargs` parameter_star_kwargs: "**" `parameter` [","] parameter: `identifier` [":" `expression`]