8000 Comparing python:main...encukou:invalid-grammar · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python/cpython
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: encukou/cpython
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: invalid-grammar
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on May 1, 2024

  1. gh-118235: Move alts that RAISE_SYNTAX_ERROR to invalid rules; validate

    Add a validator that makes sure RAISE_SYNTAX_ERROR only appears in
    invalid rules. This looks at the action text, as a string.
    
    Move all such actions to invalid rules. This works for two of them,
    but not the type_param rules, where the SyntaxError that ends up
    being raised is the one from &&'(' in the function definition.
    encukou committed May 1, 2024
    Configuration menu
    Copy the full SHA
    238db96 View commit details
    Browse the repository at this point in the history
Loading
0