Edgewall Software

Changes between Initial Version and Version 1 of Ticket #9536


Ignore:
Timestamp:
Aug 1, 2010, 11:10:51 AM (11 years ago)
Author:
Christian Boos
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9536

    • Property Keywords python25 added
    • Property Version0.13dev
  • Ticket #9536 – Description

    initial v1  
    11The goal of this task is to remove Python 2.4 compatibility code, and to start using Python 2.5-only features. This includes:
    22
    3  * Use context managers and the `with` statement.
     3 * Use context managers and the `with` statement
    44 * Use `... if ... else ...` expressions instead of the more error-prone `... and ... or ...`.
    55 * Remove our own implementations for functionality that was introduced in Python 2.5.