Notice: This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.
Foreword for "Programming Python" (1st ed.) Foreword for "Programming Python" (1st ed.) This is the foreword I wrote for Mark Lutz' book "Programming Python" (1st ed.), published by O'Reilly. See also my foreword to the 2nd edition. As Python's creator, I'd like to say a few words about its origins, adding a bit of personal philosophy. Over six years ago, in December 1989, I was looking for a "hobby" programming project that would keep me occupied during the we...
...InterpreterState_New() and PyThreadState_New() are two of the very few advertised as being safe to call without holding the GIL. However, this wasn't true in a debug build, as bug 1041645 demonstrated. In a debug build, Python redirects the PyMem family of calls to Python's small-object allocator, to get the benefit of its extra debugging capabilities. But Python's small-object allocator isn't threadsafe, relying on the GIL to avoid the expense of doing its own locking. PyInterpreterState_Ne...
...interpreters, the built-in class objects (being statically allocated data structures) are shared between all interpreters; thus, code running in one interpreter might wreak havoc on another interpreter, which is a no-no. Static methods and class methods The new descriptor API makes it possible to add static methods and class methods. Static methods are easy to describe: they behave pretty much like static methods in C++ or Java. Here's an example: class C: def...
...interpreters, the built-in class objects (being statically allocated data structures) are shared between all interpreters; thus, code running in one interpreter might wreak havoc on another interpreter, which is a no-no. Static methods and class methods The new descriptor API makes it possible to add static methods and class methods. Static methods are easy to describe: they behave pretty much like static methods in C++ or Java. Here's an example: class C: def foo(x, ...
...interpreters for packages which use Distutils, by using the command "python2.3 setup.py bdist_rpm". <hr /> <li />Q) How do I build a version of these RPMs which will install as System Message: ERROR/3 (<string>, line 131) Unexpected indentation. "/usr/bin/python". System Message: WARNING/2 (<string>, line 132) Block quote ends without a blank line; unexpected unindent. <li />A) First of all, realize that you are likely to break many Red Hat ...
...interpreters for packages which use Distutils, by using the command "python2.4 setup.py bdist_rpm". <hr /> <li />Q) How do I build a version of these RPMs which will install as System Message: ERROR/3 (<string>, line 133) Unexpected indentation. "/usr/bin/python". System Message: WARNING/2 (<string>, line 134) Block quote ends without a blank line; unexpected unindent. <li />A) First of all, realize that you are likely to break many Red Hat ...
...interpreters for packages which use Distutils, by using the command "python2.3 setup.py bdist_rpm". <hr /> <li />Q) How do I build a version of these RPMs which will install as System Message: ERROR/3 (<string>, line 145) Unexpected indentation. "/usr/bin/python". System Message: WARNING/2 (<string>, line 146) Block quote ends without a blank line; unexpected unindent. <li />A) First of all, realize that you are likely to break many Red Hat ...
Highlights: Python 2.4 Highlights: Python 2.4 Here are the (subjective) highlights of what's new in Python 2.4. Faster A number of modules that were added in Python 2.3 (such as sets and heapq) have been recoded in C. In addition, there's been a number of other speedups to the interpreter. (See section 8.1, Optimizations, of the "What's New" document for more). New language features multi-line imports - when using imports in the form from foo import bar, baz, bing, bang, you c...
EDU-SIG: Python in Education EDU-SIG: Python in Education More and more, Python is making inroads at all levels in education. Python offers an interactive environment in which to explore procedural, functional and object oriented approaches to problem solving. Its high level data structures and clear syntax make it an ideal first language, while the large number of existing libraries make it suitable to tackle almost any programming tasks. Edu-sig, through its mailing list, provides an infor...
Version: None
Released: Feb. 21, 2008
Python 2.5.2 was released on February 21st, 2008. This is the second bugfix release of Python 2.5. Python 2.5 is now in bugfix-only mode; no new features are being added. According to the release notes, over 100 bugs and patches have been addressed since Python 2.5.1, many of …
View Release Notes
Released: Dec. 19, 2008
Python 2.5.3 was released on December 19th, 2008. This is the last bugfix release of Python 2.5. Python 2.5 is now in bugfix-only mode; no new features are being added. According to the release notes, about 80 bugs and patches have been addressed since Python 2.5.2, many of …
Released: April 19, 2007
Python 2.5.1 was released on April 18th, 2007. This is the first bugfix release of Python 2.5. Python 2.5 is now in bugfix-only mode; no new features are being added. According to the release notes, over 150 bugs and patches have been squished since Python 2.5, including a …
Python Success Stories Introduction ForecastWatch.com, a service of Intellovations, is in the business of rating the accuracy of weather reports from companies such as Accuweather, MyForecast.com, and The Weather Channel. Over 36,000 weather forecasts are collected every day for over 800 U.S. cities, and later compared with actual climatological data. These comparisons are used by meteorologists to improve their weather forecasts, and to compare their forecasts with others. They are also used...
Python Success Stories This article was previously published on Builder.com Introduction Software engineers have long told their bosses and clients that they can have software "fast, cheap, or right," as long as they pick any two of those factors. Getting all three? Forget about it! But United Space Alliance (USA), NASA's main shuttle support contractor, had a mandate to provide software that meets all three criteria. Their experience with Python told them NASA's demands were within...
Python Distutils-SIG: Design Proposal Python Distutils-SIG (Prerequisites: please read the proposed interface before trying to plough through this design document; it is very much a sequel to the interface document.) Design Proposal The Distutils' point of view setup.py only has to import one module, distutils.core. This module is responsible for parsing all command-line arguments to setup.py (even though the interpretation of options is di...
If you didn't find what you need, try your search in the Python language documentation.