Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | GH-91079: Decouple C stack overflow checks from Python recursion checks. ↵ | Mark Shannon | 2022-10-05 | 1 | -6/+2 |
| | | | | (GH-96510) | ||||
* | gh-97008: Add a Python implementation of AttributeError and NameError ↵ | Łukasz Langa | 2022-10-04 | 1 | -500/+3 |
| | | | | | | | | | suggestions (#97022) Relevant tests moved from test_exceptions to test_traceback to be able to compare both implementations. Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | ||||
* | gh-96352: Set AttributeError context in _PyObject_GenericGetAttrWithDict ↵ | philg314 | 2022-09-08 | 1 | -0/+5 |
| | | | | (#96353) | ||||
* | Increase test coverage of Objects/exceptions.c (GH-94674) | Irit Katriel | 2022-07-08 | 1 | -5/+47 |
| | |||||
* | gh-84623: Remove unused imports in tests (#93772) | Victor Stinner | 2022-06-13 | 1 | -1/+0 |
| | |||||
* | GH-88116: Use a compact format to represent end line and column offsets. ↵ | Mark Shannon | 2022-04-21 | 1 | -1/+1 |
| | | | | | | | | | | | | (GH-91666) * Stores all location info in linetable to conform to PEP 626. * Remove column table from code objects. * Remove end-line table from code objects. * Document new location table format | ||||
* | gh-89770: Implement PEP-678 - Exception notes (GH-31317) | Irit Katriel | 2022-04-16 | 1 | -13/+19 |
| | |||||
* | bpo-47212: Improve error messages for un-parenthesized generator expressions ↵ | Matthieu Dartiailh | 2022-04-05 | 1 | -1/+10 |
| | | | | (GH-32302) | ||||
* | bpo-46940: Don't override existing AttributeError suggestion information ↵ | Pablo Galindo Salgado | 2022-03-07 | 1 | -0/+18 |
| | | | | | | | | | | | | (GH-31710) When an exception is created in a nested call to PyObject_GetAttr, any external calls will override the context information of the AttributeError that we have already placed in the most internal call. This will cause the suggestions we create to nor work properly as the attribute name and object that we will be using are the incorrect ones. To avoid this, we need to check first if these attributes are already set and bail out if that's the case. | ||||
* | Allow the parser to avoid nested processing of invalid rules (GH-31252) | Pablo Galindo Salgado | 2022-02-10 | 1 | -1/+1 |
| | |||||
* | bpo-46458: Add tests for context of exception in finally block (GH-30986) | Irit Katriel | 2022-01-28 | 1 | -0/+50 |
| | |||||
* | bpo-46442: improve and rename testExceptionCleanupNames (GH-30758) | Yellow Dusk | 2022-01-22 | 1 | -2/+14 |
| | | | | | The test tested that explicitly deleting the local variable bound to the exception did not cause problems, but it did not test what it actually claimed to test, i.e. that the variable is deleted automatically. | ||||
* | bpo-46339: Fix crash in the parser when computing error text for multi-line ↵ | Pablo Galindo Salgado | 2022-01-11 | 1 | -0/+6 |
| | | | | | f-strings (GH-30529) Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463) | Pablo Galindo Salgado | 2022-01-08 | 1 | -0/+12 |
| | |||||
* | bpo-46240: Correct the error for unclosed parentheses when the tokenizer is ↵ | Pablo Galindo Salgado | 2022-01-04 | 1 | -1/+1 |
| | | | | not finished (GH-30378) | ||||
* | bpo-45292: [PEP-654] add except* (GH-29581) | Irit Katriel | 2021-12-14 | 1 | -0/+2 |
| | |||||
* | bpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074) | Pablo Galindo Salgado | 2021-12-12 | 1 | -2/+2 |
| | |||||
* | bpo-46054: Fix parsing error when parsing non-utf8 characters in source ↵ | Pablo Galindo Salgado | 2021-12-12 | 1 | -0/+12 |
| | | | | files (GH-30068) | ||||
* | bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) | Pablo Galindo Salgado | 2021-12-11 | 1 | -3/+4 |
| | |||||
* | bpo-46004: Fix error location for loops with invalid targets (GH-29959) | Pablo Galindo Salgado | 2021-12-07 | 1 | -0/+1 |
| | |||||
* | bpo-45607: Make it possible to enrich exception displays via setting their ↵ | Irit Katriel | 2021-12-03 | 1 | -0/+21 |
| | | | | __note__ field (GH-29880) | ||||
* | bpo-45786: Allocate space for frame in frame object. (GH-29729) | Mark Shannon | 2021-11-29 | 1 | -4/+2 |
| | |||||
* | bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if ↵ | Pablo Galindo Salgado | 2021-11-24 | 1 | -2/+2 |
| | | | | inside parentheses (GH-29757) | ||||
* | bpo-45871: Refactor except matcher validation into a separate function so ↵ | Irit Katriel | 2021-11-22 | 1 | -0/+15 |
| | | | | that it can be reused. Add missing unit test. (GH-29711) | ||||
* | bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) | Pablo Galindo Salgado | 2021-11-20 | 1 | -0/+13 |
| | |||||
* | bpo-45727: Make the syntax error for missing comma more consistent (GH-29427) | Pablo Galindo Salgado | 2021-11-19 | 1 | -0/+1 |
| | |||||
* | bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` ↵ | Dennis Sweeney | 2021-11-17 | 1 | -0/+31 |
| | | | | (GH-29590) | ||||
* | bpo-45494: Fix parser crash when reporting errors involving invalid ↵ | Pablo Galindo Salgado | 2021-10-19 | 1 | -0/+4 |
| | | | | | | | | | | | | continuation characters (GH-28993) There are two errors that this commit fixes: * The parser was not correctly computing the offset and the string source for E_LINECONT errors due to the incorrect usage of strtok(). * The parser was not correctly unwinding the call stack when a tokenizer exception happened in rules involving optionals ('?', [...]) as we always make them return valid results by using the comma operator. We need to check first if we don't have an error before continuing. | ||||
* | bpo-45408: Don't override previous tokenizer errors in the second parser ↵ | Pablo Galindo Salgado | 2021-10-07 | 1 | -1/+1 |
| | | | | pass (GH-28812) | ||||
* | bpo-45400: Fix suggestion test of test_exceptions (GH-28783) | Victor Stinner | 2021-10-07 | 1 | -1/+1 |
| | | | | | Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals() of test_exceptions if a directory name contains "a1" (like "Python-3.11.0a1"): use a stricter regular expression. | ||||
* | Fix typos in the Lib directory (GH-28775) | Christian Clauss | 2021-10-06 | 1 | -1/+1 |
| | | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | ||||
* | [tests] Add missing assert against expected tracebacks in test_exceptions.py ↵ | andrei kulakov | 2021-09-21 | 1 | -0/+1 |
| | | | | (GH-28484) | ||||
* | bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005) | Serhiy Storchaka | 2021-08-29 | 1 | -0/+10 |
| | |||||
* | bpo-44895: skip test_no_hang_on_context_chain_cycle2 until the refleak is ↵ | Irit Katriel | 2021-08-16 | 1 | -3/+1 |
| | | | | fixed (GH-27761) | ||||
* | bpo-44895: Temporarily add an extra gc.collect() call (GH-27746) | Irit Katriel | 2021-08-13 | 1 | -0/+3 |
| | | | This is part of an investigation of a non-deterministic reference leak. While we're looking for the root cause, this is included temporarily so that CI doesn't fail on this particular issue. This enables it to find other regressions in the meantime, which would otherwise be shadowed by our known issue. | ||||
* | bpo-33930: Fix typo in the test name. (#27733) | Benjamin Peterson | 2021-08-12 | 1 | -1/+1 |
| | | | bpo-33930: Fix typo in the test name. (GH-27733) | ||||
* | bpo-33930: Fix segfault with deep recursion when cleaning method objects ↵ | Pablo Galindo Salgado | 2021-08-10 | 1 | -0/+15 |
| | | | | (GH-27678) | ||||
* | bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle ↵ | Irit Katriel | 2021-08-10 | 1 | -0/+142 |
| | | | | | in its context chain (GH-27626) Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com | ||||
* | bpo-34013: Don't consider a grouped expression when reporting legacy print ↵ | Pablo Galindo Salgado | 2021-08-01 | 1 | -0/+9 |
| | | | | syntax errors (GH-27521) | ||||
* | bpo-34013: Move the Python 2 hints from the exception constructor to the ↵ | Pablo Galindo Salgado | 2021-07-27 | 1 | -7/+5 |
| | | | | parser (GH-27392) | ||||
* | bpo-34013: Generalize the invalid legacy statement error message (GH-27389) | Pablo Galindo Salgado | 2021-07-27 | 1 | -0/+6 |
| | |||||
* | bpo-44655: Don't include suggestions for attributes that are the same as the ↵ | Pablo Galindo Salgado | 2021-07-16 | 1 | -0/+12 |
| | | | | missing one (GH-27197) | ||||
* | Remove unnecessary 'invalid_primary' rule in the parser (GH-27186) | Pablo Galindo Salgado | 2021-07-16 | 1 | -1/+1 |
| | |||||
* | bpo-44317: Improve tokenizer errors with more informative locations (GH-26555) | Pablo Galindo Salgado | 2021-07-10 | 1 | -2/+2 |
| | |||||
* | Make sure that line number is set correctly for call to __exit__ when ↵ | Mark Shannon | 2021-06-24 | 1 | -7/+24 |
| | | | | handling exception in body of a with statement. (GH-26890) | ||||
* | bpo-44409: Fix error location in tokenizer errors that happen during ↵ | Pablo Galindo | 2021-06-14 | 1 | -0/+1 |
| | | | | initialization (GH-26712) | ||||
* | bpo-44368: Ensure we don't raise incorrect custom syntax errors with soft ↵ | Pablo Galindo | 2021-06-09 | 1 | -0/+1 |
| | | | | keywords (GH-26630) | ||||
* | bpo-44349: Fix edge case when displaying text from files with encoding in ↵ | Pablo Galindo | 2021-06-08 | 1 | -0/+16 |
| | | | | syntax errors (GH-26611) | ||||
* | bpo-44335: Fix a regression when identifying invalid characters in syntax ↵ | Pablo Galindo | 2021-06-08 | 1 | -0/+1 |
| | | | | errors (GH-26589) | ||||
* | bpo-44180: Report generic syntax errors in the furthest position reached in ↵ | Pablo Galindo | 2021-05-21 | 1 | -0/+1 |
| | | | | the first parser pass (GH-26253) |