Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-127347: Document `traceback.print_list` (#127348) | Tomas R. | 2024-12-03 | 1 | -1/+1 |
| | | | Previously, `traceback.print_list` didn't have a documentation entry and was not exposed in `traceback.__all__`. Now it has a documentation entry and is exposed in `__all__`. | ||||
* | gh-125593: Use colors to highlight error locations in tracebacks from ↵ | Bogdan Romanyuk | 2024-10-27 | 1 | -1/+1 |
| | | | | exception group (#125681) | ||||
* | gh-122145: Handle an empty AST body when reporting tracebacks (#122161) | Bénédikt Tran | 2024-09-18 | 1 | -0/+2 |
| | |||||
* | gh-123123: Fix display of syntax errors covering multiple lines (#123131) | Pablo Galindo Salgado | 2024-08-19 | 1 | -3/+7 |
| | | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | gh-99180: Make `StackSummary.should_show_carets` private (#119554) | Alex Waygood | 2024-05-25 | 1 | -2/+2 |
| | |||||
* | gh-118893: Evaluate all statements in the new REPL separately (#119318) | Pablo Galindo Salgado | 2024-05-21 | 1 | -2/+3 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | gh-116871: Improve name suggestions in tracebacks (GH-116930) | Serhiy Storchaka | 2024-05-06 | 1 | -0/+11 |
| | | | | | Only include underscored names in name suggestions for AttributeError and ImportError if the original name was underscored. | ||||
* | gh-111201: A new Python REPL (GH-111567) | Pablo Galindo Salgado | 2024-05-05 | 1 | -2/+3 |
| | | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-117225: Move colorize functionality to own internal module (#118283) | Hugo van Kemenade | 2024-05-01 | 1 | -69/+27 |
| | |||||
* | gh-99180: Remove traceback anchors in return and assign statements that ↵ | Pablo Galindo Salgado | 2024-05-01 | 1 | -5/+33 |
| | | | | cover all the displayed range (#112670) | ||||
* | gh-112730: Make the test suite resilient to color-activation environment ↵ | Pablo Galindo Salgado | 2024-04-24 | 1 | -10/+16 |
| | | | | variables (#117672) | ||||
* | gh-117225: Add color to doctest output (#117583) | Hugo van Kemenade | 2024-04-24 | 1 | -0/+4 |
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-113358: Fix rendering tracebacks with exceptions with a broken ↵ | Jérome Perrin | 2024-01-16 | 1 | -1/+5 |
| | | | | | __getattr__ (GH-113359) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | ||||
* | gh-110721: Remove unused code from suggestions.c after moving PyErr_Display ↵ | Pablo Galindo Salgado | 2024-01-08 | 1 | -0/+7 |
| | | | | to use the traceback module (#113712) | ||||
* | gh-112730: Use color to highlight error locations (gh-112732) | Pablo Galindo Salgado | 2023-12-06 | 1 | -35/+162 |
| | | | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | gh-106922: Support multi-line error locations in traceback (attempt 2) (#112097) | William Wen | 2023-12-01 | 1 | -82/+286 |
| | |||||
* | gh-112332: Deprecate TracebackException.exc_type, add exc_type_str. (#112333) | Irit Katriel | 2023-11-28 | 1 | -12/+38 |
| | |||||
* | gh-111388: Add `show_group` parameter to `traceback.format_exception_only` ↵ | Nikita Sobolev | 2023-10-27 | 1 | -6/+25 |
| | | | | (#111390) | ||||
* | bpo-43950: handle wide unicode characters in tracebacks (#28150) | Batuhan Taskaya | 2023-10-26 | 1 | -12/+41 |
| | |||||
* | gh-67224: Show source lines in tracebacks when using the -c option when ↵ | Pablo Galindo Salgado | 2023-10-26 | 1 | -6/+5 |
| | | | | running Python (#111200) | ||||
* | gh-111157: Mention `__notes__` in `traceback.format_exception_only` ↵ | Nikita Sobolev | 2023-10-21 | 1 | -15/+12 |
| | | | | docstring (#111158) | ||||
* | gh-110805: Allow the repl to show source code and complete tracebacks (#110775) | Pablo Galindo Salgado | 2023-10-13 | 1 | -3/+7 |
| | |||||
* | gh-110721: Use the traceback module for PyErr_Display() and fallback to the ↵ | Pablo Galindo Salgado | 2023-10-12 | 1 | -5/+21 |
| | | | | C implementation (#110702) | ||||
* | gh-106922: Fix error location for constructs with spaces and parentheses ↵ | Pablo Galindo Salgado | 2023-09-08 | 1 | -3/+13 |
| | | | | (#108959) | ||||
* | gh-105292: Add option to make ↵ | Irit Katriel | 2023-06-06 | 1 | -6/+12 |
| | | | | | | | traceback.TracebackException.format_exception_only recurse into exception groups (#105294) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | gh-89412: Add missing attributes (added in 3.10) to traceback module docs ↵ | Jakub Kuczys | 2023-06-05 | 1 | -2/+2 |
| | | | | (#105046) | ||||
* | GH-89455: Add missing attributes (added in 3.11) to traceback module docs ↵ | Jakub Kuczys | 2023-05-29 | 1 | -0/+2 |
| | | | | (#105044) | ||||
* | gh-102799: replace sys.exc_info by sys.exception in inspect and traceback ↵ | Irit Katriel | 2023-05-01 | 1 | -3/+3 |
| | | | | modules (#104032) | ||||
* | gh-103895: Improve how invalid `Exception.__notes__` are displayed (#103897) | Carey Metcalfe | 2023-05-01 | 1 | -2/+6 |
| | |||||
* | gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵ | Irit Katriel | 2023-03-18 | 1 | -6/+10 |
| | | | | sys.last_value,sys.last_traceback (#102779) | ||||
* | gh-99103: Normalize specialized traceback anchors against the current line ↵ | Batuhan Taskaya | 2022-11-12 | 1 | -4/+9 |
| | | | | | (GH-99145) Automerge-Triggered-By: GH:isidentical | ||||
* | gh-99139: Improve NameError error suggestion for instances (#99140) | Pablo Galindo Salgado | 2022-11-06 | 1 | -0/+10 |
| | |||||
* | gh-98878: Use builtins from the bound frame when offering a suggestion (#98880) | Batuhan Taskaya | 2022-10-31 | 1 | -1/+1 |
| | |||||
* | gh-98744: Prevent column-level decoding crashes on traceback module (#98824) | Batuhan Taskaya | 2022-10-29 | 1 | -14/+11 |
| | |||||
* | gh-91058: Add error suggestions to 'import from' import errors (#98305) | Pablo Galindo Salgado | 2022-10-25 | 1 | -3/+15 |
| | |||||
* | gh-98254: Include stdlib module names in error messages for NameErrors (#98255) | Pablo Galindo Salgado | 2022-10-15 | 1 | -0/+7 |
| | |||||
* | gh-97008: Add a Python implementation of AttributeError and NameError ↵ | Łukasz Langa | 2022-10-04 | 1 | -0/+127 |
| | | | | | | | | | 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-87822: Make traceback module robust to exceptions from repr() of local ↵ | Simon-Martin Schröder | 2022-07-11 | 1 | -1/+2 |
| | | | | values (GH-94691) | ||||
* | gh-93883: elide traceback indicators when possible (#93994) | John Belmonte | 2022-07-11 | 1 | -13/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-93883: elide traceback indicators when possible Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws even more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Rather than going out of our way to provide indicator coverage in every traceback test suite, the indicator test suite should be responible for sufficient coverage (e.g. by adding a basic exception group test to ensure that margin strings are covered). | ||||
* | gh-89770: Implement PEP-678 - Exception notes (GH-31317) | Irit Katriel | 2022-04-16 | 1 | -10/+14 |
| | |||||
* | bpo-45615: Add missing test for printing traceback for non-exception. Fix ↵ | Irit Katriel | 2022-01-02 | 1 | -1/+5 |
| | | | | traceback.py (GH-30091) | ||||
* | bpo-45607: Make it possible to enrich exception displays via setting their ↵ | Irit Katriel | 2021-12-03 | 1 | -0/+4 |
| | | | | __note__ field (GH-29880) | ||||
* | bpo-45614: Fix traceback display for exceptions with invalid module name ↵ | Irit Katriel | 2021-11-27 | 1 | -0/+2 |
| | | | | (GH-29726) | ||||
* | bpo-45292: [PEP 654] Update traceback display code to work with exception ↵ | Irit Katriel | 2021-11-05 | 1 | -13/+128 |
| | | | | groups (GH-29207) | ||||
* | bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855) | Pablo Galindo Salgado | 2021-10-16 | 1 | -1/+1 |
| | |||||
* | bpo-45249: Ensure the traceback module prints correctly syntax errors with ↵ | Pablo Galindo Salgado | 2021-09-27 | 1 | -6/+21 |
| | | | | ranges (GH-28575) | ||||
* | bpo-41031: Match C and Python code formatting of unprintable exceptions and ↵ | Irit Katriel | 2021-09-05 | 1 | -1/+1 |
| | | | | exceptions in the __main__ module. (GH-28139) | ||||
* | bpo-45075: distinguish between frame and FrameSummary in traceback mo… ↵ | Irit Katriel | 2021-09-03 | 1 | -29/+33 |
| | | | | (GH-28112) | ||||
* | bpo-31299: make it possible to filter out frames from tracebacks (GH-28067) | Irit Katriel | 2021-08-31 | 1 | -0/+3 |
| | |||||
* | bpo-43950: support some multi-line expressions for PEP 657 (GH-27339) | Batuhan Taskaya | 2021-07-25 | 1 | -8/+10 |
| | | | | | | | | | | | | | | | | | | | | | This is basically something that I noticed up while fixing test runs for another issue. It is really common to have multiline calls, and when they fail the display is kind of weird since we omit the annotations. E.g; ``` $ ./python t.py Traceback (most recent call last): File "/home/isidentical/cpython/cpython/t.py", line 11, in <module> frame_1() ^^^^^^^^^ File "/home/isidentical/cpython/cpython/t.py", line 5, in frame_1 frame_2( File "/home/isidentical/cpython/cpython/t.py", line 2, in frame_2 return a / 0 / b / c ~~^~~ ZeroDivisionError: division by zero ``` This patch basically adds support for annotating the rest of the line, if the instruction covers multiple lines (start_line != end_line). Automerge-Triggered-By: GH:isidentical |