You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inst defintion and its optional stack_effect #133412
I think it's easier to change the docs than to change the parser. And it's better, IMO, to keep an explicit stack effect as it helps readability and avoids having special cases during parsing.
@picnixz I agree. Clearly defining the stack effect and enforcing it at the parser level will help ensure consistency in the inst definition across all instructions.
I think it should be enough to update the internal docs. I don't think there's any urgent need to support the optional syntax (imo, it's better to be explicit)
Activity
nybblista commentedon May 5, 2025
@brandtbucher
picnixz commentedon May 5, 2025
I think it's easier to change the docs than to change the parser. And it's better, IMO, to keep an explicit stack effect as it helps readability and avoids having special cases during parsing.
nybblista commentedon May 5, 2025
@picnixz I agree. Clearly defining the stack effect and enforcing it at the parser level will help ensure consistency in the
instdefinition across all instructions.nybblista commentedon May 6, 2025
The
inst_headermethod of the parser shows that it is not dealing with the optional path. However, it will be enough to update the doc.@picnixz @tomasr8
tomasr8 commentedon May 6, 2025
I think it should be enough to update the internal docs. I don't think there's any urgent need to support the optional syntax (imo, it's better to be explicit)
pythongh-133412: remove the brackets of the optional stack_effect
picnixz commentedon May 8, 2025
I haven't merged your PR yet :). I'm only merging PRs when I'm on my Linux session and before 8PM (Paris time)
gh-133412: amend docs for the `inst` definition (#133708)
pythongh-133412: amend docs for the `inst` definition (pythonGH-133708)
pythongh-133412: amend docs for the `inst` definition (pythonGH-133708)
[3.14] gh-133412: amend docs for the `inst` definition (GH-133708) (#…
[3.13] gh-133412: amend docs for the `inst` definition (GH-133708) (#…
pythongh-133412: amend docs for the `inst` definition (python#133708)
pythongh-133412: amend docs for the `inst` definition (python#133708)