]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-133412: amend docs for the `inst` definition (GH-133708) (#133730)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 May 2025 07:12:44 +0000 (09:12 +0200)
committerGitHub <noreply@github.com>
Fri, 9 May 2025 07:12:44 +0000 (07:12 +0000)
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>
Tools/cases_generator/interpreter_definition.md

index 889f58fc3e1a75d5894c0895c347d60437cf999f..a00d236be2c2bdeb45c0500b318ab471d466a9ca 100644 (file)
@@ -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 "}"
     |