Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#16155 closed Cleanup/optimization (fixed)

Drop support for Python 2.4

Reported by: aaugustin 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:


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).


  • I haven't touched backwards compatibility in code in django/test/ and django/util/unittest/ because I prefer staying as close as possible to the standard library's version.
  • I haven't removed django/utils/ and django/utils/ because some third-party apps may be using these models.
  • django/db/models/ 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 aaugustin 4 years ago.
drop-support-for-python24.2.patch (20.1 KB) - added by aaugustin 4 years ago.

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by aaugustin

comment:1 Changed 4 years ago by lukeplant

  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by jezdez

  • Patch needs improvement set shouldn't be changed to DeprecationWarning but stay at PendingDeprecationWarning.

Changed 4 years ago by aaugustin

comment:3 Changed 4 years ago by aaugustin

  • Patch needs improvement unset

comment:4 Changed 4 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 4 years ago by ramiro

  • Resolution set to fixed
  • Status changed from new to closed

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 4 years ago by jacob

  • milestone 1.4 deleted

Milestone 1.4 deleted

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