Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-96587: Raise `SyntaxError` for PEP654 on older `feature_version` (#96588) | Nikita Sobolev | 2022-09-05 | 1 | -1/+3 |
| | |||||
* | gh-94996: Disallow lambda pos only params with feature_version < (3, 8) āµ | Shantanu | 2022-08-12 | 1 | -2/+2 |
| | | | | (GH-95934) | ||||
* | gh-94996: Disallow parsing pos only params with feature_version < (3, 8) āµ | Shantanu | 2022-08-12 | 1 | -2/+2 |
| | | | | (GH-94997) | ||||
* | gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version āµ | Shantanu | 2022-07-18 | 1 | -1/+1 |
| | | | | | | | | | | | (#94950) * gh-94949: Disallow parsing parenthesised ctx manager with old feature_version * šš¤ Added by blurb_it. * Allow it with feature_version=(3, 9) as well Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | gh-94947: Disallow parsing walrus with feature_version < (3, 8) (#94948) | Shantanu | 2022-07-18 | 1 | -1/+3 |
| | | | | | | | | | * gh-94947: Disallow parsing walrus with feature_version < (3, 8) * oops, commit the parser * šš¤ Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | gh-94192: Fix error for dictionary literals with invalid expression as āµ | wookie184 | 2022-06-26 | 1 | -1/+1 |
| | | | | | | | value. (#94304) * Fix error for dictionary literals with invalid expression as value. * Remove trailing whitespace | ||||
* | gh-92858: Improve error message for some suites with syntax error before ':' āµ | wookie184 | 2022-06-23 | 1 | -8/+10 |
| | | | | (#92894) | ||||
* | gh-93671: Avoid exponential backtracking in deeply nested sequence patterns āµ | Pablo Galindo Salgado | 2022-06-10 | 1 | -3/+3 |
| | | | | | in match statements (GH-93680) Co-authored-by: Åukasz Langa <lukasz@langa.pl> | ||||
* | bpo-47212: Improve error messages for un-parenthesized generator expressions āµ | Matthieu Dartiailh | 2022-04-05 | 1 | -3/+3 |
| | | | | (GH-32302) | ||||
* | bpo-43224: Implement PEP 646 grammar changes (GH-31018) | Matthew Rahtz | 2022-03-26 | 1 | -1/+8 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | bpo-46838: Syntax error improvements for function definitions (GH-31590) | Pablo Galindo Salgado | 2022-03-22 | 1 | -9/+45 |
| | |||||
* | Allow the parser to avoid nested processing of invalid rules (GH-31252) | Pablo Galindo Salgado | 2022-02-10 | 1 | -6/+5 |
| | |||||
* | bpo-46707: Avoid potential exponential backtracking in some syntax errors āµ | Pablo Galindo Salgado | 2022-02-10 | 1 | -1/+3 |
| | | | | (GH-31241) | ||||
* | bpo-46272: Fix two heading comments in python.gram (GH-30499) | Mark Dickinson | 2022-01-09 | 1 | -3/+3 |
| | | | One typo fix and one heading change, both in comments. No functional changes. | ||||
* | bpo-45292: [PEP-654] add except* (GH-29581) | Irit Katriel | 2021-12-14 | 1 | -2/+15 |
| | |||||
* | bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if āµ | Pablo Galindo Salgado | 2021-11-24 | 1 | -1/+2 |
| | | | | inside parentheses (GH-29757) | ||||
* | bpo-45450: Improve syntax error for parenthesized arguments (GH-28906) | Pablo Galindo Salgado | 2021-11-20 | 1 | -0/+4 |
| | |||||
* | bpo-45727: Make the syntax error for missing comma more consistent (GH-29427) | Pablo Galindo Salgado | 2021-11-19 | 1 | -2/+2 |
| | |||||
* | bpo-45764: improve error message when missing '(' after 'def' (GH-29484) | Carl Friedrich Bolz-Tereick | 2021-11-09 | 1 | -2/+2 |
| | | | | | to achieve this, change the grammar to expect the '(' token after 'def' NAME. Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-45716: Improve the error message when using True/False/None as keywords āµ | Pablo Galindo Salgado | 2021-11-05 | 1 | -0/+2 |
| | | | | in a call (GH-29413) | ||||
* | bpo-44257: fix "assigment_expr" typo + regenerate the grammar, and remove āµ | wim glenn | 2021-11-03 | 1 | -4/+4 |
| | | | | | | unused imports (GH-29393) Co-authored-by: Wim Glenn <wglenn@jumptrading.com> | ||||
* | bpo-43914: Correctly highlight SyntaxError exceptions for invalid generator āµ | Pablo Galindo Salgado | 2021-09-27 | 1 | -1/+1 |
| | | | | expression in function calls (GH-28576) | ||||
* | bpo-44947: Refine the syntax error for trailing commas in import statements āµ | Pablo Galindo Salgado | 2021-08-18 | 1 | -1/+1 |
| | | | | (GH-27814) | ||||
* | bpo-44838: Refine the custom syntax errors for invalid 'if' expressions āµ | Pablo Galindo Salgado | 2021-08-05 | 1 | -1/+1 |
| | | | | (GH-27615) | ||||
* | bpo-44792: Improve syntax errors for if expressions (GH-27506) | Miguel Brito | 2021-08-02 | 1 | -0/+1 |
| | |||||
* | bpo-34013: Don't consider a grouped expression when reporting legacy print āµ | Pablo Galindo Salgado | 2021-08-01 | 1 | -1/+1 |
| | | | | syntax errors (GH-27521) | ||||
* | Divide the grammar into sections to improve readability (GH-27502) | Pablo Galindo Salgado | 2021-07-31 | 1 | -221/+446 |
| | |||||
* | bpo-34013: Move the Python 2 hints from the exception constructor to the āµ | Pablo Galindo Salgado | 2021-07-27 | 1 | -3/+4 |
| | | | | parser (GH-27392) | ||||
* | bpo-34013: Generalize the invalid legacy statement error message (GH-27389) | Pablo Galindo Salgado | 2021-07-27 | 1 | -1/+6 |
| | |||||
* | Remove unnecessary 'invalid_primary' rule in the parser (GH-27186) | Pablo Galindo Salgado | 2021-07-16 | 1 | -3/+0 |
| | |||||
* | bpo-44456: Improve the syntax error when mixing keyword and positional āµ | Pablo Galindo | 2021-06-24 | 1 | -0/+8 |
| | | | | patterns (GH-26793) | ||||
* | bpo-44368: Improve syntax errors with invalid as pattern targets (GH-26632) | Pablo Galindo | 2021-06-10 | 1 | -0/+4 |
| | |||||
* | bpo-44385: Remove unused grammar rules (GH-26655) | Lysandros Nikolaou | 2021-06-10 | 1 | -11/+0 |
| | | | Automerge-Triggered-By: GH:lysnikolaou | ||||
* | bpo-44305: Improve syntax error for try blocks without except or finally āµ | Pablo Galindo | 2021-06-03 | 1 | -0/+1 |
| | | | | (GH-26523) | ||||
* | bpo-44180: Fix edge cases in invalid assigment rules in the parser (GH-26283) | Pablo Galindo | 2021-05-21 | 1 | -14/+24 |
| | | | | | | | | | | | | | | | The invalid assignment rules are very delicate since the parser can easily raise an invalid assignment when a keyword argument is provided. As they are very deep into the grammar tree, is very difficult to specify in which contexts these rules can be used and in which don't. For that, we need to use a different version of the rule that doesn't do error checking in those situations where we don't want the rule to raise (keyword arguments and generator expressions). We also need to check if we are in left-recursive rule, as those can try to eagerly advance the parser even if the parse will fail at the end of the expression. Failing to do this allows the parser to start parsing a call as a tuple and incorrectly identify a keyword argument as an invalid assignment, before it realizes that it was not a tuple after all. | ||||
* | bpo-44168: Fix error message in the parser for keyword arguments for invalid āµ | Pablo Galindo | 2021-05-19 | 1 | -1/+1 |
| | | | | expressions (GH-26210) | ||||
* | bpo-43149: Correct the syntax error message for multiple exception types āµ | Pablo Galindo | 2021-05-08 | 1 | -1/+1 |
| | | | | | (GH-25996) Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-43892: Validate the first term of complex literal value patterns (GH-25735) | Brandt Bucher | 2021-04-30 | 1 | -6/+15 |
| | |||||
* | bpo-43892: Make match patterns explicit in the AST (GH-25585) | Nick Coghlan | 2021-04-29 | 1 | -54/+101 |
| | | | Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> | ||||
* | bpo-43914: Highlight invalid ranges in SyntaxErrors (#25525) | Pablo Galindo | 2021-04-23 | 1 | -24/+27 |
| | | | | | | | | | | | | | | | | | To improve the user experience understanding what part of the error messages associated with SyntaxErrors is wrong, we can highlight the whole error range and not only place the caret at the first character. In this way: >>> foo(x, z for z in range(10), t, w) File "<stdin>", line 1 foo(x, z for z in range(10), t, w) ^ SyntaxError: Generator expression must be parenthesized becomes >>> foo(x, z for z in range(10), t, w) File "<stdin>", line 1 foo(x, z for z in range(10), t, w) ^^^^^^^^^^^^^^^^^^^^ SyntaxError: Generator expression must be parenthesized | ||||
* | bpo-43859: Improve the error message for IndentationError exceptions (GH-25431) | Pablo Galindo | 2021-04-21 | 1 | -12/+58 |
| | |||||
* | bpo-43823: Fix location of one of the errors for invalid dictionary literals āµ | Pablo Galindo | 2021-04-15 | 1 | -1/+2 |
| | | | | (GH-25427) | ||||
* | bpo-43822: Improve syntax errors for missing commas (GH-25377) | Pablo Galindo | 2021-04-15 | 2 | -0/+10 |
| | |||||
* | bpo-43823: Improve syntax errors for invalid dictionary literals (GH-25378) | Pablo Galindo | 2021-04-15 | 1 | -0/+11 |
| | |||||
* | bpo-43797: Handle correctly invalid assignments inside function calls and āµ | Pablo Galindo | 2021-04-13 | 1 | -1/+1 |
| | | | | generators (GH-25390) | ||||
* | Ensure that early = are not matched by the parser as invalid comparisons āµ | Pablo Galindo | 2021-04-13 | 1 | -1/+5 |
| | | | | (GH-25375) | ||||
* | bpo-43797: Improve syntax error for invalid comparisons (#25317) | Pablo Galindo | 2021-04-12 | 1 | -9/+24 |
| | | | | | | | | | | | | | * bpo-43797: Improve syntax error for invalid comparisons * Update Lib/test/test_fstring.py Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> * Apply review comments * can't -> cannot Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | ||||
* | bpo-43798: Add source location attributes to alias (GH-25324) | Matthew Suozzo | 2021-04-10 | 1 | -3/+3 |
| | | | | | | | * Add source location attributes to alias. * Move alias star construction to pegen helper. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> | ||||
* | bpo-43244: Rename pycore_ast.h functions to _PyAST_xxx() (GH-25252) | Victor Stinner | 2021-04-07 | 1 | -148/+148 |
| | | | | | | Rename AST functions of pycore_ast.h to use the "_PyAST_" prefix. Remove macros creating aliases without prefix. For example, Module() becomes _PyAST_Module(). Update Grammar/python.gram to use _PyAST_xxx() functions. | ||||
* | bpo-41064: Improve syntax error for invalid usage of '**' in f-strings āµ | Pablo Galindo | 2021-03-24 | 1 | -0/+2 |
| | | | | (GH-25006) |