[Python-checkins] r45811 - python/trunk/Doc/whatsnew/whatsnew25.tex
andrew.kuchling
python-checkins at python.org
Sun Apr 30 03:07:10 CEST 2006
Author: andrew.kuchling
Date: Sun Apr 30 03:07:09 2006
New Revision: 45811
Modified:
python/trunk/Doc/whatsnew/whatsnew25.tex
Log:
Add two items
Modified: python/trunk/Doc/whatsnew/whatsnew25.tex
==============================================================================
--- python/trunk/Doc/whatsnew/whatsnew25.tex (original)
+++ python/trunk/Doc/whatsnew/whatsnew25.tex Sun Apr 30 03:07:09 2006
@@ -1125,6 +1125,14 @@
# -*- coding: latin1 -*-
\end{verbatim}
+\item One error that Python programmers sometimes make is forgetting
+to include an \file{__init__.py} module in a package directory.
+Debugging this mistake can be confusing, and usually requires running
+Python with the \programopt{-v} switch to log all the paths searched.
+In Python 2.5, a new \exception{ImportWarning} warning is raised when
+an import would have picked up a directory as a package but no
+\file{__init__.py} was found. (Implemented by Thomas Wouters.)
+
\item The list of base classes in a class definition can now be empty.
As an example, this is now legal:
@@ -1440,6 +1448,15 @@
import hooks and now also works for packages stored in ZIP-format archives.
(Contributed by Phillip J. Eby.)
+\item The pybench benchmark suite by Marc-Andr\'e~Lemburg is now
+included in the \file{Tools/pybench} directory. The pybench suite is
+an improvement on the commonly used \file{pystone.py} program because
+pybench provides a more detailed measurement of the interpreter's
+performance. It times particular operations such as function calls,
+tuple slicing, method lookups, and numeric operations, instead of
+performing many different operations and reducing the result to a
+single number as \file{pystone.py} does.
+
\item The old \module{regex} and \module{regsub} modules, which have been
deprecated ever since Python 2.0, have finally been deleted.
Other deleted modules: \module{statcache}, \module{tzparse},
More information about the Python-checkins
mailing list