Edgewall Software

Opened 14 years ago

Last modified 8 years ago

#9536 closed task

Remove Python 2.4 compatibility — at Version 1

Reported by: Remy Blank Owned by: Remy Blank
Priority: normal Milestone: 1.0
Component: general Version: 0.13dev
Severity: normal Keywords: python25
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

The goal of this task is to remove Python 2.4 compatibility code, and to start using Python 2.5-only features. This includes:

  • Use context managers and the with statement
  • Use ... if ... else ... expressions instead of the more error-prone ... and ... or ....
  • Remove our own implementations for functionality that was introduced in Python 2.5.
  • Use generator expressions instead of list comprehensions where adequate.

Please add new items to this list as they pop up.

Change History (1)

comment:1 by Christian Boos, 14 years ago

Description: modified (diff)
Keywords: python25 added
Version: 0.13dev

The change concerning the context managers and the with statement mostly concerns the refactor transaction handling topic (#8751), as discussed in the googlegroups:trac-dev:4efe0b99b4e78d23 mail and follow-ups.

But we could also use it for other things, like holding locks.

Slightly related, a few places could also benefit from the unification of try/except/finally.

Note: See TracTickets for help on using tickets.