#33701: Highlight error location in the technical 500 debug page on Python 
3.11+.
---------------------------------+-----------------------------------------
     Reporter:  Adam Johnson     |                    Owner:  (none)
         Type:  New feature      |                   Status:  new
    Component:  Error reporting  |                  Version:  dev
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Someday/Maybe
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+-----------------------------------------
Description changed by Adam Johnson:

Old description:

> Python 3.11 adds "where in the line" highlighting to tracebacks:
>
> {{{
> $ python3.11 t.py
> Traceback (most recent call last):
>   File "/.../example.py", line 5, in <module>
>     formula(1, 0)
>     ^^^^^^^^^^^^^
>   File "/.../example.py", line 2, in formula
>     return a / b + b / a
>            ~~^~~
> ZeroDivisionError: division by zero
> }}}
>
> Release note: https://docs.python.org/3.11/whatsnew/3.11.html#enhanced-
> error-locations-in-tracebacks
>
> It would be good if we could use this on Django's error pages as well.
>
> The new code column information API may be required:
> https://docs.python.org/3.11/whatsnew/3.11.html#column-information-for-
> code-objects . Note it can be disabled.

New description:

 Similar to these tickets for extending the debug page for Python 3.11
 exception changes: #33747, #33752.

 Python 3.11 adds "where in the line" highlighting to tracebacks:

 {{{
 $ python3.11 t.py
 Traceback (most recent call last):
   File "/.../example.py", line 5, in <module>
     formula(1, 0)
     ^^^^^^^^^^^^^
   File "/.../example.py", line 2, in formula
     return a / b + b / a
            ~~^~~
 ZeroDivisionError: division by zero
 }}}

 Release note: https://docs.python.org/3.11/whatsnew/3.11.html#enhanced-
 error-locations-in-tracebacks

 It would be good if we could use this on Django's error pages as well.

 The new code column information API may be required:
 https://docs.python.org/3.11/whatsnew/3.11.html#column-information-for-
 code-objects . Note it can be disabled.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33701#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018115a766f1-b56ce7fb-743e-4525-91fa-be21ef4171b0-000000%40eu-central-1.amazonses.com.

Reply via email to