Re: [Django] #33747: Display exception notes on the technical 500 debug page on Python 3.11+.

19 views
Skip to first unread message

Django

unread,
May 28, 2022, 3:22:49 AM5/28/22
to django-...@googlegroups.com
#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
---------------------------------+------------------------------------
Changes (by Claude Paroz):

* stage: Unreviewed => Accepted


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

Django

unread,
May 30, 2022, 11:47:56 AM5/30/22
to django-...@googlegroups.com
#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

unread,
May 31, 2022, 12:17:33 AM5/31/22
to django-...@googlegroups.com
#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: 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
---------------------------------+-----------------------------------------
Changes (by Mariusz Felisiak):

* version: 4.1 => dev
* stage: Accepted => Someday/Maybe


Comment:

Let's wait for the final release first.

--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:4>

Django

unread,
Oct 25, 2022, 7:07:58 AM10/25/22
to django-...@googlegroups.com
#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: dev
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
---------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* stage: Someday/Maybe => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:5>

Django

unread,
Nov 5, 2022, 10:59:43 AM11/5/22
to django-...@googlegroups.com
#33747: Display exception notes on the technical 500 debug page on Python 3.11+.
---------------------------------+------------------------------------
Reporter: Adam Johnson | Owner: Giebisch
Type: New feature | Status: assigned

Component: Error reporting | Version: dev
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
---------------------------------+------------------------------------
Changes (by Giebisch):

* owner: (none) => Giebisch
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:6>

Django

unread,
Nov 21, 2022, 11:14:42 AM11/21/22
to django-...@googlegroups.com
#33747: Display exception notes on the technical 500 debug page on Python 3.11+.
---------------------------------+------------------------------------
Reporter: Adam Johnson | Owner: Giebisch
Type: New feature | Status: assigned
Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Giebisch):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:7>

Django

unread,
Nov 22, 2022, 12:05:20 AM11/22/22
to django-...@googlegroups.com
#33747: Display exception notes on the technical 500 debug page on Python 3.11+.
---------------------------------+------------------------------------
Reporter: Adam Johnson | Owner: Giebisch
Type: New feature | Status: assigned
Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:8>

Django

unread,
Nov 24, 2022, 4:12:54 PM11/24/22
to django-...@googlegroups.com
#33747: Display exception notes on the technical 500 debug page on Python 3.11+.
---------------------------------+------------------------------------
Reporter: Adam Johnson | Owner: Giebisch
Type: New feature | Status: assigned
Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Giebisch):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:9>

Django

unread,
Nov 25, 2022, 2:19:15 AM11/25/22
to django-...@googlegroups.com
#33747: Display exception notes on the technical 500 debug page on Python 3.11+.
-------------------------------------+-------------------------------------

Reporter: Adam Johnson | Owner: Giebisch
Type: New feature | Status: assigned
Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:10>

Django

unread,
Nov 25, 2022, 3:26:37 AM11/25/22
to django-...@googlegroups.com
#33747: Display exception notes on the technical 500 debug page on Python 3.11+.
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: Giebisch
Type: New feature | Status: closed

Component: Error reporting | Version: dev
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"80c66e40f7beecbd5ee501f757a2e61236597349" 80c66e4]:
{{{
#!CommitTicketReference repository=""
revision="80c66e40f7beecbd5ee501f757a2e61236597349"
Fixed #33747 -- Added exception notes to the technical 500 debug page.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33747#comment:11>

Reply all
Reply to author
Forward
0 new messages