Opened 6 years ago

Closed 6 years ago

Last modified 5 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:

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 6 years ago.
drop-support-for-python24.2.patch (20.1 KB) - added by Aymeric Augustin 6 years ago.

Download all attachments as: .zip

Change History (8)

Changed 6 years ago by Aymeric Augustin

comment:1 Changed 6 years ago by Luke Plant

Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Jannis Leidel

Patch needs improvement: set

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

Changed 6 years ago by Aymeric Augustin

comment:3 Changed 6 years ago by Aymeric Augustin

Patch needs improvement: unset

comment:4 Changed 6 years ago by Jannis Leidel

Triage Stage: AcceptedReady for checkin

comment:5 Changed 6 years ago by Ramiro Morales

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 Changed 5 years ago by Jacob

milestone: 1.4

Milestone 1.4 deleted

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