From: A.M. K. <aku...@us...> - 2001-08-07 14:29:01
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv31033 Modified Files: python-22.tex Log Message: Document two new items Correct error noticed by Keith Briggs Re-indent a paragraph Index: python-22.tex =================================================================== RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** python-22.tex 2001/07/31 15:51:16 1.19 --- python-22.tex 2001/08/07 14:28:58 1.20 *************** *** 70,74 **** \method{__getitem__()} is more properly used to define an indexing operation on an object so that you can write \code{obj[5]} to retrieve ! the fifth element. It's a bit misleading when you're using this only to support \keyword{for} loops. Consider some file-like object that wants to be looped over; the \var{index} parameter is essentially --- 70,74 ---- \method{__getitem__()} is more properly used to define an indexing operation on an object so that you can write \code{obj[5]} to retrieve ! the sixth element. It's a bit misleading when you're using this only to support \keyword{for} loops. Consider some file-like object that wants to be looped over; the \var{index} parameter is essentially *************** *** 511,519 **** \item The \module{xmlrpclib} module was contributed to the standard ! library by Fredrik Lundh. It provides support for writing XML-RPC ! clients; XML-RPC is a simple remote procedure call protocol built on ! top of HTTP and XML. For example, the following snippet retrieves a ! list of RSS channels from the O'Reilly Network, and then retrieves a ! list of the recent headlines for one channel: \begin{verbatim} --- 511,519 ---- \item The \module{xmlrpclib} module was contributed to the standard ! library by Fredrik Lundh. It provides support for writing XML-RPC ! clients; XML-RPC is a simple remote procedure call protocol built on ! top of HTTP and XML. For example, the following snippet retrieves a ! list of RSS channels from the O'Reilly Network, and then retrieves a ! list of the recent headlines for one channel: \begin{verbatim} *************** *** 586,589 **** --- 586,594 ---- (Reported by an unknown person; fixed by Fred L. Drake, Jr.) + \item The \module{mimetypes} module now makes it easier to use + alternative MIME-type databases by the addition of a + \class{MimeTypes} class, which takes a list of filenames to be + parsed. (Contributed by Fred L. Drake, Jr.) + \end{itemize} *************** *** 702,706 **** \item On Windows, Python can now be compiled with Borland C thanks to a number of patches contributed by Stephen Hansen. ! \item Another Windows enhancement: Wise Solutions generously offered PythonLabs use of their InstallerMaster 8.1 system. Earlier --- 707,711 ---- \item On Windows, Python can now be compiled with Borland C thanks to a number of patches contributed by Stephen Hansen. ! \item Another Windows enhancement: Wise Solutions generously offered PythonLabs use of their InstallerMaster 8.1 system. Earlier *************** *** 708,711 **** --- 713,723 ---- show its age. (Packaged up by Tim Peters.) + \item Files ending in \samp{.pyw} can now be imported on Windows. + \samp{.pyw} is a Windows-only thing, used to indicate that a script + needs to be run using PYTHONW.EXE instead of PYTHON.EXE in order to + prevent a DOS console from popping up to display the output. This + patch makes it possible to import such scripts, in case they're also + usable as modules. (Implemented by David Bolen.) + \item On platforms where Python uses the C \cfunction{dlopen()} function to load extension modules, it's now possible to set the flags used *************** *** 721,726 **** The author would like to thank the following people for offering suggestions and corrections to various drafts of this article: Fred ! Bremmer, Fred L. Drake, Jr., Mark Hammond, Marc-Andr\'e Lemburg, ! Tim Peters, Neil Schemenauer, Guido van Rossum. \end{document} --- 733,738 ---- The author would like to thank the following people for offering suggestions and corrections to various drafts of this article: Fred ! Bremmer, Keith Briggs, Fred L. Drake, Jr., Mark Hammond, Marc-Andr\'e ! Lemburg, Tim Peters, Neil Schemenauer, Guido van Rossum. \end{document} |