#33747: Display exception notes on the technical 500 debug page on Python 3.11+.
---------------------------------+------------------------------------
     Reporter:  Adam Johnson     |                    Owner:  (none)
         Type:  New feature      |                   Status:  new
    Component:  Error reporting  |                  Version:  4.1
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    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:

> Similar to #33701's suggestion to extend the debug page.
>
> Python 3.11 adds `BaseException.__notes__` which may include extra
> information about the exception. These are expected to be used by certain
> libraries that can attach context to exceptions.
>
> https://docs.python.org/3.11/whatsnew/3.11.html#exceptions-can-be-
> enriched-with-notes-pep-678
>
> The default Python error handler displays these. Django's debug page
> should too, to aid debugging.

New description:

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

 Python 3.11 adds `BaseException.__notes__` which may include extra
 information about the exception. These are expected to be used by certain
 libraries that can attach context to exceptions.

 https://docs.python.org/3.11/whatsnew/3.11.html#exceptions-can-be-
 enriched-with-notes-pep-678

 The default Python error handler displays these. Django's debug page
 should too, to aid debugging.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:3>
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/0107018115a6faf1-818702ca-90e4-4e92-a2c0-a7a73ad47146-000000%40eu-central-1.amazonses.com.

Reply via email to