diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-04-30 01:07:09 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-04-30 01:07:09 (GMT) |
commit | c9236111edb23d9cfb029b0d874c484c4001317b (patch) | |
tree | aec6de4db3bb601f73e6e725977cb592d19661cc /Doc/whatsnew | |
parent | eb2e1926acdf803b8416724e5321df07b2798b2a (diff) | |
download | cpython-c9236111edb23d9cfb029b0d874c484c4001317b.zip cpython-c9236111edb23d9cfb029b0d874c484c4001317b.tar.gz cpython-c9236111edb23d9cfb029b0d874c484c4001317b.tar.bz2 |
Add two items
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 2cea4a8..f7b8c45 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -1125,6 +1125,14 @@ a line like this near the top of the source file: # -*- 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 @@ functions for finding packages, was enhanced to support PEP 302's 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}, |