Changes between Version 17 and Version 23 of Ticket #9536
- Timestamp:
- Feb 21, 2011, 11:16:06 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9536 – Description
v17 v23 1 1 The goal of this task is to remove Python 2.4 compatibility code, and to start using Python 2.5-only features. See [http://docs.python.org/whatsnew/2.5.html what's new in Python 2.5]. This includes: 2 2 3 * Use context managers and the `with` statement for: database transactions, handling locks, handling files.3 * ~~Use context managers and the `with` statement for: database transactions, handling locks, handling files.~~ 4 4 * Use `... if ... else ...` expressions instead of the more error-prone `... and ... or ...`. 5 5 * Use `try: except: finally:` instead of nested `try: finally:` and `try: except:`.