What's New in Python 2.5 From Python 2.5 previous page next page Up: Python Documentation Index Next: Contents What's New in Python 2.5 A.M. Kuchling amk@amk.ca Contents 1 PEP 308: Conditional Expressions 2 PEP 309: Partial Function Application 3 PEP 314: Metadata for Python Software Packages v1.1 4 PEP 328: Absolute and Relative Imports 5 PEP 338: Executing Modules as Scripts 6 PEP 341: Unified try/except/finally 7 PEP 342: New Generator Features 8 PEP 343: The 'with' statement 8.1 Writing Context Managers 8.2 The contextlib module 9 PEP 352: Exceptions as New-Style Classes 10 PEP 353: Using ssize_t as the index type 11 PEP 357: The '__index__' method 12 Other Language Changes 12.1 Interactive Interpreter Changes 12.2 Optimizations 13 New, Improved, and Removed Modules 13.1 The ctypes package 13.2 The ElementTree package 13.3 The hashlib package 13.4 The sqlite3 package 13.5 The wsgiref package 14 Build and C API Changes 14.1 Port-Specific Changes 15 Porting to Python 2.5 16 Acknowledgements About this document ... What's New in Python 2.5 Up: Python Documentation Index Next: Contents Release 1.0. See About this document... for information on suggesting changes. previous page start next page