Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#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 and django/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 and django/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)

drop-support-for-python24.patch (20.2 KB ) - added by Aymeric Augustin 14 years ago.
drop-support-for-python24.2.patch (20.1 KB ) - added by Aymeric Augustin 14 years ago.

Download all attachments as: .zip

Change History (8)

by Aymeric Augustin, 14 years ago

comment:1 by Luke Plant, 14 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 14 years ago

Patch needs improvement: set

hashcompat.py shouldn't be changed to DeprecationWarning but stay at PendingDeprecationWarning.

by Aymeric Augustin, 14 years ago

comment:3 by Aymeric Augustin, 14 years ago

Patch needs improvement: unset

comment:4 by Jannis Leidel, 14 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Ramiro Morales, 14 years ago

Resolution: fixed
Status: newclosed

In [16349]:

Fixed #16155 -- Removed Python 2.4 compatibility constructs from code and mentions from docs. Thanks Aymeric Augustin for the report and patch.

comment:6 by Jacob, 13 years ago

milestone: 1.4

Milestone 1.4 deleted

Note: See TracTickets for help on using tickets.
Back to Top