Python 2.2 Page

Python 2.2



Return to Python Versions, Python Version History, Python, Python DevOps

Released in December 2001, Python 2.2 introduced major changes that affected the core object model and features of the language.

* PEP 252 and PEP 253 introduced "new-style" classes, which unified the distinction between built-in types and user-defined classes. This change paved the way for greater flexibility and consistency in Python's object-oriented programming model.
* The addition of iterators and generators, solidifying Python's position as a flexible and expressive language for handling streams of data.
* The introduction of the `bool` type, with `True` and `False` constants, which improved code readability and made Boolean logic more intuitive.

Documentation: https://docs.python.org/2.2/whatsnew

What PEPs were implemented in Python 2.2?


{{navbar_python}}

{{navbar_footer}}