Python 3.15.2 documentation
Python setup and usage How to install, configure, and use Python. Python HOWTOs In-depth topic manuals. Installing Python modules Third-party modules and PyPI.org. Extending and embedding For C/C++ programmers.
Python setup and usage How to install, configure, and use Python. Python HOWTOs In-depth topic manuals. Installing Python modules Third-party modules and PyPI.org. Extending and embedding For C/C++ programmers.
Changed in version 3.10: NewType is now a class rather than a function. As a result, there is some additional runtime cost when calling NewType over a regular function. Changed in version 3.11: The performance of calling NewType has been restored to its level in Python 3.9.
Python’s generators – or more precisely, generator functions and generator iterators – provide a convenient way to implement the iterator protocol. A function that contains one or more yield expressions is a generator function. For example
This article explains the new features in Python 3.15, compared to 3.14. Python 3.15 was released on 9 October 2026. For full details, see the changelog.
22 hours ago · Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming.