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.
Python Documentation Index Python Essays In this directory I place short essays (anything from 500 to 5000 words) on various Python subjects. See also a collection of presentations I have given. See also my blog at blogspot.com and my previous blog at artima.com. --Guido van Rossum Table of contents (in mostly chronological order) Unifying types and classes in Python 2.2 (See below) Foreword for "Programming Python" (1st ed.) Written in 1996, this gives an overview of the earl...
...dictionary types, for which rich syntactic support is built straight into the language, find a use in almost every Python program. Because of the run-time typing, Python's run time must work harder than Java's. For example, when evaluating the expression a+b, it must first inspect the objects a and b to find out their type, which is not known at compile time. It then invokes the appropriate addition operation, which may be an overloaded user-defined method. Java, on the other hand, can p...
...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? What's new in Python 3000? Python 3.1.4 Change Log Online Documentation Conversion tool for Python 2.x code: 2to3 Report bugs at http://bugs.python.org. Help f...
...dictionary() constructor, and dictionary type, have been renamed to dict. This reflects a decade of common usage. dict() now accepts an iterable object producing 2-sequences. For example, dict(d.items()) == d for any dictionary d. The argument, and the elements of the argument, can be any iterable objects. New-style classes can now have a __del__ method, which is called when the instance is deleted (just like for classic classes). Assignment to object.__dict__ is now possible, for objects ...
...dictionary. class_sig = toclass.__dict__.keys(); class_sig.sort() dict_keys = fromdict.keys(); dict_keys.sort() common = intersect(class_sig, dict_keys) if 'typemap' in class_sig: class_sig.remove('typemap') if tuple(class_sig) != tuple(dict_keys): print "Conformability error" # print "Class signature: " + `class_sig` # print "Dictionary keys: " + `dict_keys` print "Not matched in class signature: " +...
Python Success Stories Introduction Frequentis is one of the world's leading providers for safety-critical solutions in the field of Air Traffic Management and Public Safety & Transport. With over 500 employees world-wide, it provides innovative, user-centered solutions to its customers. Frequentis has been using Python in its TAPtools® product family, which focuses on the Tower and Airport Tools segment of Air Traffic Control. These tools are used by air traffic controllers to track weat...
...dictionary. The content inserter creates a Word document and inserts values from the dictionary into it. The post-processing formatter takes the result and modifies it according to the latest corporate Word format style template. This flow was designed to cope with changes in requirements by the different teams within our department, and by corporate-level standards. For example, the layout of reports was determined by the generator application in a layout class that could be replaced with other...
Version: None
Released: April 6, 2013
Note: A newer security-fix release, 3.2.6, is currently available. Its use is recommended. Python 3.2.4 was released on April 7th, 2013. This is the final 3.2 series bugfix release. New features of the 3.2 series, compared to 3.1 Python 3.2 is a continuation of the efforts to improve and …
View Release Notes
...dictionary. There's all sorts of new and shiny evil possible thanks to this little change. New or upgraded modules and packages a new subprocess module for spawning processes in a platform-independent way (see PEP 324) decimal - a new numeric type that allows for the accurate representation of floating point numbers (avoiding the problems of binary floating point) (PEP 327) os.urandom() has been added for systems that support a source of random data (entropy) The mpz, rotor and xreadlines m...
Released: Sept. 29, 2012
Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting between 2.x and 3.x. Major new features in the 3.3 release series are: PEP 380, syntax for delegating to a subgenerator (yield from) PEP 393, flexible string representation (doing away …
Released: May 15, 2013
Note: A newer security-fix release, 3.2.6, is currently available. Its use is recommended. Python 3.2.5 was released on May 15th, 2013. This release fixes a few regressions found in Python 3.2.4, and is planned to be the final 3.2 series bugfix release. New features of the 3.2 series, compared …
Released: July 9, 2011
Note: A newer security-fix release, 3.2.6, is currently available. Its use is recommended. Python 3.2.1 was released on July 10th, 2011. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x line will only …
Released: Sept. 3, 2011
Note: A newer security-fix release, 3.2.6, is currently available. Its use is recommended. Python 3.2.2 was released on September 4th, 2011. It mainly fixes a regression in the urllib.request module that prevented opening many HTTP resources correctly with Python 3.2.1. Python 3.2 is a continuation of the efforts to …
Released: April 10, 2012
Note: A newer security-fix release, 3.2.6, is currently available. Its use is recommended. Python 3.2.3 was released on April 10, 2012. It includes fixes for several reported security issues: issue 13703 (CVE-2012-1150, hash collision denial of service), issue 14234 (CVE-2012-0876, Expat hash collision denial of service), issue 14001 (CVE-2012-0845, …
Released: Feb. 20, 2011
Note: A newer security-fix release, 3.2.6, is currently available. Its use is recommended. Python 3.2 was released on February 20th, 2011. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x line will only …
Python Success Stories Introduction My son Nat is autistic. He likes to look at pictures of familiar places, things, and people. We bought a digital camera so we could take as many pictures of as many ordinary things as we wanted, without having to worry about the cost and bother of film and development. Nat's tastes are difficult to predict, so we might take pictures of a subject certain to please him, only to find that he has no interest in them at all. We wanted to be able to cast a wi...
...dictionary and sequence types, and C/C++ extensibility. In addition, it had maturity, lots of documentation, and an active development community behind it. Since supporting the BSL interpreter was becoming cumbersome, and because BSL code happened to be very easy to port to Python, I approached the senior developers with the suggestion that we change horses in mid-stream and replace BSL with Python. This proposal was initially met with mixed reactions. There was some concern as to whether any sc...
...dictionary-based logging configuration an overhauled GIL implementation that reduces contention an extended email package that handles bytes messages a much improved ssl module with support for SSL contexts and certificate hostname matching a sysconfig module to access configuration information additions to the shutil module, among them archive file support many enhancements to configparser, among them mapping protocol support improvements to pdb, the Python debugger countless fixes regarding by...
If you didn't find what you need, try your search in the Python language documentation.