From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 9 May 2025 07:12:44 +0000 (+0200) Subject: [3.13] gh-133412: amend docs for the `inst` definition (GH-133708) (#133730) X-Git-Tag: v3.13.4~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c7a04b8bdf3e4f003025ee49e14f93550acd35c;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-133412: amend docs for the `inst` definition (GH-133708) (#133730) gh-133412: amend docs for the `inst` definition (GH-133708) The `stack_effect` is incorrectly documented as being allowed to be optional. (cherry picked from commit f77dac66e1867cfdf6f7549822dd64416f6063bc) Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com> --- diff --git a/Tools/cases_generator/interpreter_definition.md b/Tools/cases_generator/interpreter_definition.md index 889f58fc3e1a..a00d236be2c2 100644 --- a/Tools/cases_generator/interpreter_definition.md +++ b/Tools/cases_generator/interpreter_definition.md @@ -81,7 +81,7 @@ and a piece of C code describing its semantics:: (definition | family | pseudo)+ definition: - "inst" "(" NAME ["," stack_effect] ")" "{" C-code "}" + "inst" "(" NAME "," stack_effect ")" "{" C-code "}" | "op" "(" NAME "," stack_effect ")" "{" C-code "}" |