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.
...import generators" to the top of every module that uses it. Without that, "yield" is treated as an identifier but a warning is issued. The floor division operator // has been added as outlined in PEP 238. The / operator still provides classic division (and will until Python 3.0) unless "from __future__ import division" is included, in which case the / operator will provide true division. Integer overflow is now a thing of the past; when small integer operations have a result that...
Version: None
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 …
View Release Notes
Released: Jan. 31, 2018
This is a beta preview of Python 3.7 Python 3.7 is still in development. This release, 3.7.0b1, is the first of four planned beta release previews. Among the major new features in Python 3.7 are: PEP 538, Coercing the legacy C locale to a UTF-8 based locale PEP 539 …
Released: Feb. 28, 2018
This is a beta preview of Python 3.7 Python 3.7 is still in development. This release, 3.7.0b2, is the second of four planned beta release previews. Among the major new features in Python 3.7 are: PEP 538, Coercing the legacy C locale to a UTF-8 based locale PEP 539 …
...Import Statement Many people have asked for a way to import a module under a different name. This can be accomplished like this: import foo bar = foo del foo but this common idiom gets old quickly. A simple extension of the import statement now allows this to be written as follows: import foo as bar There's also a variant for 'from ... import': from foo import bar as spam This also works with packages; e.g. you can write this: i...
...import the module. Continuing questions The doc-sig discussion should focus on coming to an agreement on the types of documents that are needed, the format that documentation should be made available in, and the content or subject matter that should be covered in those document. The project should also make an effort to recruit authors. Examples of options available include: Types of documents: Tutorials and HowTo Papers User Guides Reference Manuals ...
Released: Feb. 2, 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.0a5 is the fifth of seven planned alpha releases. Alpha releases are intended to make it easier to test the current state of …
Released: June 6, 2023
This is the fourth maintenance release of Python 3.11 Python 3.11.4 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 …
...import can use both relative and absolute imports when inside packages. Try/except/finally were changed so that it's now possible to have both except blocks and a finally block for the same try block. Exceptions have become new-style classes, and the exception hierarchy has been rearranged a bit. Internally, Python was changed to use the Py_ssize_t type - this means that many structures that were limited to 2^32 objects can now hold up to 2^64 instead. New or upgraded built-ins partition and r...
Help Fund Python Development and Maintenance Donate to Python Development and Maintenance The Python Software Foundation's goal is to increase the support we provide for Python development and maintenance. Through the donation button above, you can financially contribute to this cause. The PSF will use Python development fundraising to support CPython development and maintenance. Additionally, the funds will be used for mission-related sprints, such as the annual core dev...
...import clr clr.AddReference("System.Windows.Forms") # Then import symbols from the assembly, as if from a Python module from System.Windows.Forms import Application, Form # Then use the imported symbols as though they were native Python types form = Form() form.Text = "Hello World" Application.Run(form) Which displays this fully-functional Windows application: Figure 1. "Hello World" GUI application created from IronPython. Zoom in Over time, other strengths o...
Released: March 1, 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.0a6 is the sixth of seven planned alpha releases. Alpha releases are intended to make it easier to test the current state of …
Released: June 19, 2023
This is a beta preview of Python 3.12 Python 3.12 is still in development. This release, 3.12.0b3, is the third of four beta release previews of 3.12. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their …
...importantly an access to other people within the community to share and source out ideas have been invaluable to us. Going forward, with the new normal, supporting virtual events is definitely an important thing which the PSF can help with. A step-by-step guide on how to manage virtual events, how tos for tools and a platform to expose events to the worldwide community would be very helpful. In a world that is widening in terms of inequality where we tend to take away more and more, I am happy t...
...important. (To get more precise data on this, we would have to instrument the interpreter.) Still, our best version, f3(), was only twice as fast as the most straightforward version, f1(). Could we do better? I was worried that the quadratic behavior of the algorithm was killing us. So far, we had been using a list of 256 integers as test data, since that was what my friend needed the function for. But what if it were applied to a list of two thousand characters? We'd be conca...
Released: July 11, 2023
This is a beta preview of Python 3.12 Python 3.12 is still in development. This release, 3.12.0b4, is the final of four beta release previews of 3.12. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their …
...important and the money raised will help the PSF support the tools and initiatives that Pythonistas use everyday. This years' fundraiser is focusing on education. We're excited to be able to collaborate with authors, trainers, and companies from all over the world to raise money for the PSF. In addition, it will help grow a diverse and international community of Python programmers. There are two ways you can donate to the PSF fundraiser! Purchase a product/service from any o...
Released: March 17, 2014
Python 3.4.0 Python 3.4 has reached end-of-life. Python 3.4.10, the final release of the 3.4 series, is available here. Python 3.4.0 was released on March 16th, 2014. Major new features of the 3.4 series, compared to 3.3 Python 3.4 includes a range of improvements of the 3.x series, including hundreds …
Released: July 29, 2003
This is a patch release which supersedes earlier releases of 2.3. 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 …
Released: Aug. 29, 2019
This is a beta preview of Python 3.8 Python 3.8 is still in development. This release, 3.8.0b4 is the last 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 …
If you didn't find what you need, try your search in the Python language documentation.