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.
...returned by PyObject_Repr(). Since this is presumably a big string and you are allocating a lot of them (one each time you get to this print statement) the malloc pattern of your application becomes very different and this means that you may see very different behavior. So, (maybe from shock), I eliminate the Py_INCREFs and try with just the printing... still works perfectly (save that I'm printing the entire parse tree on every iteration of the while loop (which isn't good...)). ...
...return for a mention as a sponsor. They expect that the costs (bank fees on credit card transactions etc.) will be approximately 5%. They won't charge us extra above the actual costs. Steve Holden is conference chair and will send out a conference announcement as soon as we've signed the contract. We've created mailing lists for the conference, and a handful of volunteers have signed up already. We plan to put the conference website up at www.python.org/pycon...
...return str(x) if type(str) != type(''): str = helper(str) return str.strip() Under the old rules, the name str in helper() is bound to the builtin function str(). Under the new rules, it will be bound to the argument named str and an error will occur when helper() is called. The compiler will report a SyntaxError if "from ... import *" occurs in a function or class scope. The language reference has documented that this case is illegal, but the compiler never checked...
...return log" statement in the generator body which is currently illegal, and I can't figure out to where this value would be returned. The example looks like it doesn't need a generator, and if it did, it would be easy to stop the generator by setting a global "please stop" flag and calling next() once more. (If you don't like globals, make the generator a method of a class and make the stop flag an instance variable.) PEP 281 - Loop Counter Iteration with...
Version: None
Released: Oct. 24, 2022
This is the stable release of Python 3.11.0 Python 3.11.0 is the newest major release of the Python programming language, and it contains many new features and optimizations. Major new features of the 3.11 series, compared to 3.10 Some of the new major new features and changes in Python 3.11 …
View Release Notes
Released: April 8, 2025
Here comes the final alpha! This means we have just four weeks until the first beta to get those last features into 3.14 before the feature freeze on 2025-05-06! This is an early developer preview of Python 3.14 Major new features of the 3.14 series, compared to 3.13 Python 3.14 …
Released: May 7, 2025
Only one day late, welcome to the first beta! This is a beta preview of Python 3.14 Python 3.14 is still in development. This release, 3.14.0b1, is the first of four planned beta releases. Beta release previews are intended to give the wider community the opportunity to test new features …
Released: April 5, 2021
This is an early developer preview of Python 3.10 Major new features of the 3.10 series, compared to 3.9 Python 3.10 is still in development. This release, 3.10.0a7 is the last of seven planned alpha releases. Alpha releases are intended to make it easier to test the current state of …
Released: April 2, 2021
This is the ninth maintenance release of Python 3.8 Note: The release you're looking at is Python 3.8.9, a bugfix release for the legacy 3.8 series. Python 3.11 is now the latest feature release series of Python 3. Get the latest release of 3.11.x here. 3.8.9 is an expedited …
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: Oct. 7, 2024
This is the stable release of Python 3.13.0 Python 3.13.0 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. (Compared to the last release candidate, 3.13.0rc3, 3.13.0 contains two small bug fixes and some documentation and testing …
Released: Feb. 4, 2025
This is the second maintenance release of Python 3.13 Python 3.13 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. 3.13.2 is the latest maintenance release, containing almost 250 bugfixes, build improvements and documentation changes since 3.13.1. …
This is the third maintenance release of Python 3.13 Python 3.13 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. 3.13.3 is the latest maintenance release, containing almost 320 bugfixes, build improvements and documentation changes since 3.13.2. …
Released: Aug. 6, 2025
This is the sixth maintenance release of Python 3.13 Python 3.13 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. 3.13.6 is the sixth maintenance release of 3.13, containing around 200 bugfixes, build improvements and documentation changes …
Released: Oct. 7, 2025
This is the eighth maintenance release of Python 3.13 Python 3.13 is the newest previous major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. 3.13.8 is the eighth maintenance release of 3.13, containing around 200 bugfixes, build improvements and documentation …
Released: Dec. 2, 2025
This is the tenth maintenance release of Python 3.13 Python 3.13.10 is the tenth maintenance release of 3.13, containing around 300 bugfixes, build improvements and documentation changes since 3.13.9. Major new features of the 3.13 series, compared to 3.12 Some of the new major new features and changes in Python …
...returns '1L'. For floats, repr() now gives 17 digits of precision, to ensure no precision is lost (on all current hardware). The -X option is gone. Built-in exceptions are now always classes. Many more library modules also have been converted to class-based exceptions. Binary Incompatibilities Third party extensions built for Python 1.5.x cannot be used with Python 1.6; these extensions will have to be rebuilt for Python 1.6. On Windows, attempting to import a th...
Released: Dec. 21, 2001
Important: This release is vulnerable to the problem described in security advisory PSF-2006-001 "Buffer overrun in repr() of unicode strings in wide unicode builds (UCS-4)". This fix is included in Python 2.4.4 and Python 2.5. If you need to remain with Python 2.2, there's a patch available from the …
Released: Sept. 6, 2024
This is a security release of Python 3.9 Note: The release you're looking at is Python 3.9.20, a security bugfix release for the legacy 3.9 series. Python 3.12 is now the latest feature release series of Python 3. Get the latest release of 3.12.x here. Security content in this …
If you didn't find what you need, try your search in the Python language documentation.