[Python-checkins] r45579 - python/trunk/Doc/whatsnew/whatsnew25.tex (original) (raw)

andrew.kuchling python-checkins at python.org
Thu Apr 20 15:36:06 CEST 2006


Author: andrew.kuchling Date: Thu Apr 20 15:36:06 2006 New Revision: 45579

Modified: python/trunk/Doc/whatsnew/whatsnew25.tex Log: Add some items; add "New module" consistently; make contextlib.closing example more interesting and more correct (thanks Gustavo!); add a name

Modified: python/trunk/Doc/whatsnew/whatsnew25.tex

--- python/trunk/Doc/whatsnew/whatsnew25.tex (original) +++ python/trunk/Doc/whatsnew/whatsnew25.tex Thu Apr 20 15:36:06 2006 @@ -865,9 +865,12 @@ and calls \code{\var{object}.close()} at the end of the block. \begin{verbatim} -with closing(open('/tmp/file', 'r')) as f: +import urllib, sys +from contextlib import closing + +with closing(urllib.urlopen('http://www.yahoo.com')) as f: for line in f: - ... + sys.stdout.write(line) \end{verbatim} \begin{seealso} @@ -1193,11 +1196,6 @@ % the cPickle module no longer accepts the deprecated None option in the % args tuple returned by reduce(). -% XXX fileinput: opening hook used to control how files are opened. -% .input() now has a mode parameter -% now has a fileno() function -% accepts Unicode filenames

-%====================================================================== \subsection{The ctypes package}

The \module{ctypes} package, written by Thomas Heller, has been added @@ -1878,6 +1898,10 @@ now uses the \cfunction{dlopen()} function instead of MacOS-specific functions.

+\item Windows: \file{.dll} is no longer supported as a filename extension for +extension modules. \file{.pyd} is now the only filename extension that will +be searched for. + \end{itemize}

@@ -1972,7 +1996,7 @@

The author would like to thank the following people for offering suggestions, corrections and assistance with various drafts of this -article: Phillip J. Eby, Kent Johnson, Martin vonL"owis, Mike -Rovner, Thomas Wouters. +article: Phillip J. Eby, Kent Johnson, Martin vonL"owis, Gustavo +Niemeyer, Mike Rovner, Thomas Wouters.

\end{document}



More information about the Python-checkins mailing list