From: A.M. K. <aku...@us...> - 2001-01-22 19:50:59
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv3013 Modified Files: python-21.tex Log Message: Added dictionary.popitem() and the improved XML modules. Reorder the smaller items, roughly in decreasing order of visibility to the Python coder Finished an incomplete sentence. Moved the unwritten sections down to the bottom. Bumped version number and added acknowledgements Index: python-21.tex =================================================================== RCS file: /cvsroot/py-howto/pyhowto/python-21.tex,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** python-21.tex 2001/01/22 17:52:19 1.3 --- python-21.tex 2001/01/22 19:51:13 1.4 *************** *** 4,8 **** \title{What's New in Python 2.1} ! \release{0.01} \author{A.M. Kuchling} \authoraddress{\email{am...@bi...}} --- 4,8 ---- \title{What's New in Python 2.1} ! \release{0.03} \author{A.M. Kuchling} \authoraddress{\email{am...@bi...}} *************** *** 143,151 **** % ====================================================================== - \section{XXX Nested Scopes ?} - - xxx - - % ====================================================================== \section{PEP 230: Warning Framework} --- 143,146 ---- *************** *** 336,339 **** --- 331,341 ---- For a fuller discussion of the line I/O changes, see the python-dev summary for January 1-15, 2001. + + \item A new method, \method{popitem()}, was added to dictionaries to enable + destructively iterating through the contents of a dictionary; this can be faster for large dictionaries because . + \code{D.popitem()} removes a random \code{(\var{key}, \var{value})} pair + from the dictionary and returns it as a 2-tuple. This was implemented + mostly by Tim Peters and Guido van Rossum, after a suggestion and + preliminary patch by Moshe Zadka. \item \module{curses.panel}, a wrapper for the panel library, part of *************** *** 358,372 **** A stricter version of this patch was first suggested and implemented ! by Ben Wolfson, but after some python-dev discussion, this weaker final version ! \item The \module{ftplib} module now defaults to retrieving files in passive mode, ! because passive mode is more likely to work from behind a firewall. ! This request came from the Debian bug tracking system, since other ! Debian packages use \module{ftplib} to retrieve files and then don't ! work from behind a firewall. It's deemed unlikely that this will ! cause problems for anyone, because Netscape defaults to passive mode ! and few people complain, but if passive mode is unsuitable for your ! application or network setup, call ! \method{set_pasv(0)} on FTP objects to disable passive mode. \item Various functions in the \module{time} module, such as --- 360,372 ---- A stricter version of this patch was first suggested and implemented ! by Ben Wolfson, but after some python-dev discussion, a weaker ! final version was checked in. ! \item The PyXML package has gone through a few releases since Python ! 2.0, and Python 2.1 includes an updated version of the \module{xml} ! package. Some of the noteworthy changes include support for Expat ! 1.2, the ability for Expat parsers to handle files in any encoding ! supported by Python, and various bugfixes for SAX, DOM, and the ! \module{minidom} module. \item Various functions in the \module{time} module, such as *************** *** 383,386 **** --- 383,398 ---- This change was proposed and implemented by Thomas Wouters. + \item The \module{ftplib} module now defaults to retrieving files in passive mode, + because passive mode is more likely to work from behind a firewall. + This request came from the Debian bug tracking system, since other + Debian packages use \module{ftplib} to retrieve files and then don't + work from behind a firewall. It's deemed unlikely that this will + cause problems for anyone, because Netscape defaults to passive mode + and few people complain, but if passive mode is unsuitable for your + application or network setup, call + \method{set_pasv(0)} on FTP objects to disable passive mode. + + \item The size of the Unicode character database was compressed by another 55K thanks to Fredrik Lundh. + \end{itemize} *************** *** 391,399 **** % ====================================================================== \section{Acknowledgements} The author would like to thank the following people for offering ! suggestions on various drafts of this article: Neil Schemenauer, ! Thomas Wouters. \end{document} --- 403,422 ---- % ====================================================================== + \section{XXX Nested Scopes ?} + + xxx + + % ====================================================================== + \section{XXX Weak References ?} + + xxx + + % ====================================================================== \section{Acknowledgements} The author would like to thank the following people for offering ! suggestions on various drafts of this article: Michael Hudson, ! Marc-Andr\'e Lemburg, ! Neil Schemenauer, Thomas Wouters. \end{document} |