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.
Version: None
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 …
View Release Notes
Released: Aug. 11, 2020
This is the first release candidate of Python 3.9 This release, 3.9.0rc1, is the penultimate release preview. Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. The second candidate and the last planned release …
Released: Oct. 5, 2020
This is the stable release of Python 3.9.0 Note: The release you're looking at is Python 3.9.0, a legacy release. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. Installer news This is the first version of Python to …
Released: Feb. 19, 2021
This is the second maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.2, 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. We've made 166 commits …
Released: June 28, 2021
This is the sixth maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.6, 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 146 commits …
Released: March 16, 2022
This is the eleventh maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.11, 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. Security content in this …
Released: May 17, 2022
This is the thirteenth and final regular maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.13, 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. According …
...Randomize answer order: [X] Private: [X] Help Email Address: ee@python.org Voting starts at: January 21, 2019 12:00 UTC Voting ends at: February 4, 2019 12:00 UTC This will create an election in which: Voting is not open to the public, only those on the Voter Roll may participate. Ballots will be emailed when voting starts. Candidates are presented in random order, to help avoid bias. Voter identities and ballots are protected against cryptographic advances. Questions Question 1 Select betw...
...random nonce. This API solves one small corner of the trust problem, however the problem itself is much larger and it would be better to have a fully fledged system, such as The Update Framework, instead. Due to the issues it has and the lack of use it is the opinion of this PEP that it does not provide any practical benefit to justify the additional complexity. Plan for Deprecation & Removal Immediately upon the acceptance of this PEP the Mirror Authenticity API will be considered deprec...
...random order (regrtest.py -r) test_mimetypes may fail. This is a fault in the test suite, the library code itself is fine. </ul> </ul> <p>To report a bug not listed above, always check the SourceForge <a href="http://sourceforge.net/bugs/?group_id=5470">Bug Tracker</a> to see if they've already been reported. Use the bug tracker to report new bugs. If you have a patch, please use the SourceForge <a href="http://sourceforge.net/patch/?group_id=5...
WARNING: this release has a known regression See BPO-40924 for details. Use Python 3.9.0b3 or newer instead, please. This is a beta preview of Python 3.9 Python 3.9 is still in development. This release, 3.9.0b2, is the second of four planned beta release previews. Beta release previews are intended to …
Released: Nov. 26, 2020
This is the release candidate of the first maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.1rc1, the 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 …
...Random The BufferedRandom implementation is for all random-access objects, whether they are read-only, write-only, or read-write. Compared to the previous classes that operate on sequential-access objects, the BufferedRandom class must contend with the user calling .seek() to reposition the stream. Therefore, an instance of BufferedRandom must keep track of both the logical and true position within the object. It provides a .flush() method that forces all cached write data to be written to the...
...random Module Deprecated All random-related methods have been collected in one place, the random module. Pattern: import whrandom --> import random Locating: grep whrandom Python 2.0 or Later String Methods The string module is likely to be deprecated in the future. Use string methods instead. They're faster too. Pattern: import string ; string.method(s, ...) --> s.method(...) c in string.whitespace --> c.isspace() Locating: grep string *.py | grep import ...
...random order (regrtest.py -r) test_mimetypes may fail. This is a fault in the test suite, the library code itself is fine. </ul> <p>To report a bug not listed above, always check the SourceForge <a href="http://sourceforge.net/bugs/?group_id=5470">Bug Tracker</a> to see if they've already been reported. Use the bug tracker to report new bugs. If you have a patch, please use the SourceForge <a href="http://sourceforge.net/patch/?group_id=5470">...
...random - this now uses a new core generator, the Mersenne Twister algorithm. This is the current best practice random number generator algorithm, widely tested, with a period of 2**19937-1. Code by Raymond Hettinger. sets - a new module implementing two flexible set data types. Code by a cast of thousands, including Greg V. Wilson, Alex Martelli, Tim Peters, and Raymond Hettinger. (PEP 218) socket - sockets now support an optional timeout on all operations. Code by Michael Gilfix and Bern...
Released: Dec. 7, 2020
This is the first maintenance release of Python 3.9 Note: The release you're looking at is Python 3.9.1, 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. We've made 282 changes …
...random import randint from time import sleep class SuspendIteration(Exception): pass class NonBlockingResource: """Randomly unable to produce the second value""" def __iter__(self): self._next = self.state_one return self def next(self): return self._next() def state_one(self): self._next = self.state_suspend return "one" def state_suspend(self): rand = randint(1,10) if 2 == rand: self._next = se...
...random, with types like namedtuple, sets, dictionaries, and many other places around the codebase. He has contributed to the modification of nearly 90,000 lines of code in the CPython repository, and has made over 160 changes in the PEP repository. Raymond has also served as a director of the Python Software Foundation, and has mentored many people over the years on their contributions to the python-dev community. He's also well known for his contributions to the Python Cookbook, and shares many...
...random API? Make the primitive for random be something generating random bytes rather than random floats? Get rid of Cookie.SerialCookie and Cookie.SmartCookie? Modify the heapq.heapreplace() API to compare the new value to the top of the heap? Outstanding Issues Require C99, so we can use // comments, named initializers, declare variables without introducing a new scope, among other benefits. (Also better support for IEEE floating point issues like NaN and infinities?) Remove support for o...