Portability (continued)

  • Recent features and their usefulness (or otherwise):

    • List comprehensions: Good and useful.

    • Generators: Introduced in 2.2 and not used currently. Not really needed for the stuff we do. Always possible to rewrite in non-generator form.

    • Definitely no from __future__ import ... constructs!

    • The warnings infrastructure in Python 2 is very useful for warning of future deprecations and portability issues.

    • Logging modules in 2.3 will be useful when we standardise on that.