Opened 13 months ago
Closed 11 days ago
#34118 closed New feature (fixed)
Python 3.12 compatibility
Reported by: | Mariusz Felisiak | Owned by: | Mariusz Felisiak |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | bcail, David Sanders, Sam James | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Python 3.12 final is scheduled for October 2023 (see PEP 693). This is a tracking ticket for compatibility fixes for Django submitted in the meantime.
Django 4.2 will be the first version to support Python 3.12, because Django 4.1 will end the mainstream support in April 2023.
Change History (37)
comment:1 Changed 13 months ago by
Cc: | bcail added |
---|
comment:2 Changed 13 months ago by
Cc: | David Sanders added |
---|
comment:4 Changed 13 months ago by
Another data point: SQLite and Postgres tests pass for me on Linux with Python 3.12 alpha 1.
comment:11 follow-up: 12 Changed 8 months ago by
Hi folks,
https://github.com/django/django/commit/38e63c9e61152682f3ff982c85a73793ab6d3267 was applied to fix Python 3.12, but cpython upstream have backported the fix for https://github.com/python/cpython/issues/102549 to Python 3.11 too.
The Django patch will need adjusting to probably just allow both output messages (or sniff the Python minor/patch version).
comment:12 Changed 8 months ago by
Replying to thesamesam:
Hi folks,
https://github.com/django/django/commit/38e63c9e61152682f3ff982c85a73793ab6d3267 was applied to fix Python 3.12, but cpython upstream have backported the fix for https://github.com/python/cpython/issues/102549 to Python 3.11 too.
The Django patch will need adjusting to probably just allow both output messages (or sniff the Python minor/patch version).
Thanks! It's unfortunate, will fix this.
comment:13 Changed 8 months ago by
Cc: | Sam James added |
---|
comment:23 Changed 2 months ago by
Owner: | changed from nobody to Mariusz Felisiak |
---|---|
Status: | new → assigned |
Triage Stage: | Someday/Maybe → Accepted |
comment:37 Changed 11 days ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I'm getting errors on the following which was working for 3.11.0.
I'm on macos 12.6