#16155 closed Cleanup/optimization (fixed)
Drop support for Python 2.4
Reported by: | Aymeric Augustin | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Support for Python 2.4 will be dropped in Django 1.4.
Attached patch updates the documentations wherever necessary and removes some dead code (ie. code that is unreachable in Python > 2.4).
Notes:
- I haven't touched backwards compatibility in code in
django/test/_doctest.py
anddjango/util/unittest/loader.py
because I prefer staying as close as possible to the standard library's version. - I haven't removed
django/utils/copycompat.py
anddjango/utils/hashcompat.py
because some third-party apps may be using these models. django/db/models/base.py
mentions a "deepcopy problem in Python 2.4"; the code could probably be simplified now, but if it ain't broken, don't fix it.
Attachments (2)
Change History (8)
by , 13 years ago
Attachment: | drop-support-for-python24.patch added |
---|
comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 13 years ago
Patch needs improvement: | set |
---|
by , 13 years ago
Attachment: | drop-support-for-python24.2.patch added |
---|
comment:3 by , 13 years ago
Patch needs improvement: | unset |
---|
comment:4 by , 13 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
hashcompat.py
shouldn't be changed toDeprecationWarning
but stay atPendingDeprecationWarning
.