Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...dict" test as well as the new "for key in dict:" to iterate efficiently (without making a copy of the list of keys) over all keys in a dictionary. It doesn't require the other argument to be a defaultdict or even a dictionary: any mapping object that supports "for key in other" and other[key] will do. Here's the new type at work: >>> print defaultdict # show our type <class '__main__.defaultdict'> >>> print type(defaultdict) # its metatype ...
...dict" test as well as the new "for key in dict:" to iterate efficiently (without making a copy of the list of keys) over all keys in a dictionary. It doesn't require the other argument to be a defaultdict or even a dictionary: any mapping object that supports "for key in other" and other[key] will do. Here's the new type at work: >>> print defaultdict # show our type <class '__main__.defaultdict'> >>> print type(defaultdict) # its metatype <type 'type'...
Version: None
Released: Aug. 30, 2021
This is the seventh maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.7, a bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. There's been 187 commits …
View Release Notes
Released: March 23, 2022
This is the twelfth maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.12, a bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. This is a special …
Released: April 28, 2020
This is an early developer preview of Python 3.9 Python 3.9 is still in development. This release, 3.9.0a6 is the last out of six planned alpha releases. Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the …
Released: May 3, 2021
This is the fifth maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.5, a bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. There's been 111 commits …
Released: Jan. 14, 2022
This is the ninth maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.10, a bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. Major new features of …
...dict() - two new features for dict construction: keyword arguments to the dict() constructor are now a shorthand for creating a dictionary from the key/value pairs, and dict.fromkeys(iterable) returns a dict whose keys are taken from the given iterable (the values default to None). Also a new dict method was added, pop(key), which removes and returns the value corresponding to the given key. filter() - now returns Unicode when the input is Unicode. Various bugs with subclasses of built-in types...
Released: July 3, 2020
This is a beta preview of Python 3.9 Python 3.9 is still in development. This release, 3.9.0b4, is the fourth of five planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects …
Released: July 20, 2020
This is a beta preview of Python 3.9 Python 3.9 is still in development. This release, 3.9.0b5, is the last of five planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects …
Released: Sept. 17, 2020
This is the second release candidate of Python 3.9 This release, 3.9.0rc2, is the last preview before the final release of Python 3.9.0 on 2020-10-05. In the mean time, we strongly encourage maintainers of third-party Python projects to prepare their projects for 3.9 compatibility during this phase. As always, …
Released: Feb. 16, 2021
This is the release candidate of the second maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.2rc1, a release candidate of a bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release …
Released: April 2, 2021
This is the third maintenance release of Python 3.9 NOTE: The release you're looking at has been recalled due to unintentional breakage of ABI compatibility with C extensions built in Python 3.9.0 - 3.9.2. Details in bpo-43710. Please use Python 3.9.4 or newer instead. Python 3.9.3 is an …
Released: April 4, 2021
This is the fourth maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.4, a bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. Python 3.9.4 is a …
Released: Nov. 5, 2021
This is the eighth maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.8, a bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. There's been 202 commits …
Released: Nov. 15, 2021
This is the ninth maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.9, an expedited bugfix release for the legacy 3.9 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. 3.9.9 was released …
Released: May 19, 2020
This is a beta preview of Python 3.9 Python 3.9 is still in development. This release, 3.9.0b1, is the first of four planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects …
Released: June 9, 2020
This is a beta preview of Python 3.9 Python 3.9 is still in development. This release, 3.9.0b3, is the third of five planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects …
If you didn't find what you need, try your search in the Python language documentation.