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.
...dictionary type New unittest features including test skipping, new assert methods, and test discovery A much faster io module Automatic numbering of fields in the str.format() method Float repr improvements backported from 3.x Tile support for Tkinter A backport of the memoryview object from 3.x Set literals Set and dictionary comprehensions Dictionary views New syntax for nested with statements The sysconfig module Resources What's new in 2.7? Complete change log for this release. Online Do...
...dictionary type New unittest features including test skipping, new assert methods, and test discovery A much faster io module Automatic numbering of fields in the str.format() method Float repr improvements backported from 3.x Tile support for Tkinter A backport of the memoryview object from 3.x Set literals Set and dictionary comprehensions Dictionary views New syntax for nested with statements The sysconfig module Binary installer support for OS X 10.4 and 10.3.9 to be discontinued Python 2...
Version: None
Released: April 9, 2012
Note: A newer bugfix release, 2.7.4, is currently available. Its use is recommended over previous versions of 2.7. Python 2.7.3 was released on April 9, 2012. 2.7.3 includes fixes for several reported security issues in 2.7.2: issue 13703 (oCERT-2011-003, hash collision denial of service), issue 14234 (CVE-2012-0876, hash table …
View Release Notes
Released: July 2, 2014
Python 2.7.8 was released on July 1, 2014. This release includes regression and security fixes over 2.7.7 including: The openssl version bundled in the Windows installer has been updated. A regression in the mimetypes module on Windows has been fixed. A possible overflow in the buffer type has been fixed. …
...dictionary type New unittest features including test skipping, new assert methods, and test discovery A much faster io module Automatic numbering of fields in the str.format() method Float repr improvements backported from 3.x Tile support for Tkinter A backport of the memoryview object from 3.x Set literals Set and dictionary comprehensions Dictionary views New syntax for nested with statements The sysconfig module See these resources for further information: What's new in 2.7? Change log for...
...dictionary, and then in the dictionary of built-in function (where it is found). Worse, unsuccessful dictionary lookups are (on average) a bit slower than successful ones, because of the way the hash chaining works. The second reason why f3() is faster than f1() is that the call to chr(item), as executed by the bytecode interpreter, is probably a bit slower than when executed by the map() function - the bytecode interpreter must execute three bytecode instructions for each call (...
...dictionary whose keys are the nodes of the graph. For each key, the corresponding value is a list containing the nodes that are connected by a direct arc from this node. This is about as simple as it gets (even simpler, the nodes could be represented by numbers instead of names, but names are more convenient and can easily be made to carry more information, such as city names). Let's write a simple function to determine a path between two nodes. It takes a graph and the start and end...
Released: Oct. 4, 2014
This is a security-fix source-only release. The last binary release was 3.2.5. The list of fixed security related issues can be found in the NEWS file. New features of the 3.2 series, compared to 3.1 Python 3.2 is a continuation of the efforts to improve and stabilize the …
...dictionary, ...) the attributes with complex types (especially dictionaries) will have a well-known and well-documented internal structure, eg. """ext_modules is a hash mapping names of C source files (each containing a Python extension module) to a nested hash of information about how to build that module. The allowed keys to this nested hash are: - other_c: other C files that must be compiled and linked with the main C file to...
...dictionary). So, thinks I (with nudging from Guido) it's a refcount error... so, I forge ahead and say "dang the memory leaks", adding Py_INCREF's everywhere. No go :( Exactly the same behaviour. Hmm... This sounds like using an automatic weapon to kill a mosquito. Know thy enemy before choosing thy weapon. The problem is, of course, with what "everywhere" is. You may easily miss the one crucial place because you didn't think of it. You should start by re-reading section...
Released: June 26, 2009
Python 3.1 has been superseded by 3.1.1. You can download 3.1.1. Python 3.1 final was released on June 27th, 2009. Python 3.1 is a continuation of the work started by Python 3.0, the new backwards-incompatible series of Python. Improvements in this release include: An ordered dictionary type Various optimizations …
Released: Oct. 12, 2014
This is a security-fix source-only release. The last binary release was 3.2.5. With the 3.2.6 release, and five years after its first release, the Python 3.2 series is now officially retired. All official maintenance for Python 3.2, including security patches, has ended. For ongoing maintenance releases, please see the …
...dictionary type Various optimizations to the int type New unittest features including test skipping and new assert methods. A much faster io module Tile support for Tkinter A pure Python reference implementation of the import statement New syntax for nested with statements See these resources for further information: What's new in 3.1? Python 3.1 change log. Online Documentation Report bugs at http://bugs.python.org. Help fund Python and its community. Download This is a production release....
...dictionary methods: .clear(), .copy(), .update(), .get(). The first two are obvious; d1.update(d2) is equivalent to the for loop for k in d2.keys(): d1[k] = d2[k]; and d.get(k) returns d[k] if it exists and None (or the optional second argument) if not. There is a new regression test harness, which tests many more modules. (To run the tests, do "import test.autotest".) The interpreter is much smarter about the initial value for sys.path; you can control it easier using $PYTHONHOME (s...
Released: Aug. 17, 2009
Python 3.1.1 has been superseded by 3.1.2. You can download 3.1.2. Python 3.1.1 was released on August 17th, 2009. Python 3.1 is a continuation of the work started by Python 3.0, the new backwards-incompatible series of Python. Improvements in this release include: An ordered dictionary type Various optimizations …
Released: Dec. 3, 2008
Python 3.0 final was released on December 3rd, 2008. Python 3.0 (a.k.a. "Python 3000" or "Py3k") is a new version of the language that is incompatible with the 2.x …
Released: March 20, 2010
Note: It is recommended that you use the latest bug fix release of the 3.1 series, 3.1.4. Python 3.1.2 was released on March 21st, 2010. The Python 3.1 version series is a continuation of the work started by Python 3.0, the new backwards-incompatible series of Python. Improvements in …
This is a security-fix source-only release. The last binary release was 3.3.5. The list of fixed security related issues can be found in the NEWS file. Major new features of the 3.3 series, compared to 3.2 Python 3.3 includes a range of improvements of the 3.x series, as …
If you didn't find what you need, try your search in the Python language documentation.