mirror of
https://github.com/python/cpython.git
synced 2025-12-05 17:14:04 +00:00
Document two new items
Correct error noticed by Keith Briggs Re-indent a paragraph
This commit is contained in:
parent
179e085113
commit
8c69c91be3
1 changed files with 21 additions and 9 deletions
|
|
@ -69,7 +69,7 @@ something like this:
|
||||||
|
|
||||||
\method{__getitem__()} is more properly used to define an indexing
|
\method{__getitem__()} is more properly used to define an indexing
|
||||||
operation on an object so that you can write \code{obj[5]} to retrieve
|
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
|
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
|
to support \keyword{for} loops. Consider some file-like object that
|
||||||
wants to be looped over; the \var{index} parameter is essentially
|
wants to be looped over; the \var{index} parameter is essentially
|
||||||
meaningless, as the class probably assumes that a series of
|
meaningless, as the class probably assumes that a series of
|
||||||
|
|
@ -510,11 +510,11 @@ Jeremy Hylton.}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
|
||||||
\item The \module{xmlrpclib} module was contributed to the standard
|
\item The \module{xmlrpclib} module was contributed to the standard
|
||||||
library by Fredrik Lundh. It provides support for writing XML-RPC
|
library by Fredrik Lundh. It provides support for writing XML-RPC
|
||||||
clients; XML-RPC is a simple remote procedure call protocol built on
|
clients; XML-RPC is a simple remote procedure call protocol built on
|
||||||
top of HTTP and XML. For example, the following snippet retrieves a
|
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 RSS channels from the O'Reilly Network, and then retrieves a
|
||||||
list of the recent headlines for one channel:
|
list of the recent headlines for one channel:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
import xmlrpclib
|
import xmlrpclib
|
||||||
|
|
@ -585,6 +585,11 @@ See \url{http://www.xmlrpc.com/} for more information about XML-RPC.
|
||||||
modules have all been fixed to use \constant{ascii_letters} instead.
|
modules have all been fixed to use \constant{ascii_letters} instead.
|
||||||
(Reported by an unknown person; fixed by Fred L. Drake, Jr.)
|
(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}
|
\end{itemize}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -707,6 +712,13 @@ changes are:
|
||||||
PythonLabs Windows installers used Wise 5.0a, which was beginning to
|
PythonLabs Windows installers used Wise 5.0a, which was beginning to
|
||||||
show its age. (Packaged up by Tim Peters.)
|
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
|
\item On platforms where Python uses the C \cfunction{dlopen()} function
|
||||||
to load extension modules, it's now possible to set the flags used
|
to load extension modules, it's now possible to set the flags used
|
||||||
by \cfunction{dlopen()} using the \function{sys.getdlopenflags()} and
|
by \cfunction{dlopen()} using the \function{sys.getdlopenflags()} and
|
||||||
|
|
@ -720,7 +732,7 @@ changes are:
|
||||||
|
|
||||||
The author would like to thank the following people for offering
|
The author would like to thank the following people for offering
|
||||||
suggestions and corrections to various drafts of this article: Fred
|
suggestions and corrections to various drafts of this article: Fred
|
||||||
Bremmer, Fred L. Drake, Jr., Mark Hammond, Marc-Andr\'e Lemburg,
|
Bremmer, Keith Briggs, Fred L. Drake, Jr., Mark Hammond, Marc-Andr\'e
|
||||||
Tim Peters, Neil Schemenauer, Guido van Rossum.
|
Lemburg, Tim Peters, Neil Schemenauer, Guido van Rossum.
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue