Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c69c91

Browse files
committed
Document two new items
Correct error noticed by Keith Briggs Re-indent a paragraph
1 parent 179e085 commit 8c69c91

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

Doc/whatsnew/whatsnew22.tex

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ \section{PEP 234: Iterators}
6969

7070
\method{__getitem__()} is more properly used to define an indexing
7171
operation on an object so that you can write \code{obj[5]} to retrieve
72-
the fifth element. It's a bit misleading when you're using this only
72+
the sixth element. It's a bit misleading when you're using this only
7373
to support \keyword{for} loops. Consider some file-like object that
7474
wants to be looped over; the \var{index} parameter is essentially
7575
meaningless, as the class probably assumes that a series of
@@ -510,11 +510,11 @@ \section{New and Improved Modules}
510510
\begin{itemize}
511511

512512
\item The \module{xmlrpclib} module was contributed to the standard
513-
library by Fredrik Lundh. It provides support for writing XML-RPC
514-
clients; XML-RPC is a simple remote procedure call protocol built on
515-
top of HTTP and XML. For example, the following snippet retrieves a
516-
list of RSS channels from the O'Reilly Network, and then retrieves a
517-
list of the recent headlines for one channel:
513+
library by Fredrik Lundh. It provides support for writing XML-RPC
514+
clients; XML-RPC is a simple remote procedure call protocol built on
515+
top of HTTP and XML. For example, the following snippet retrieves a
516+
list of RSS channels from the O'Reilly Network, and then retrieves a
517+
list of the recent headlines for one channel:
518518

519519
\begin{verbatim}
520520
import xmlrpclib
@@ -585,6 +585,11 @@ \section{New and Improved Modules}
585585
modules have all been fixed to use \constant{ascii_letters} instead.
586586
(Reported by an unknown person; fixed by Fred L. Drake, Jr.)
587587

588+
\item The \module{mimetypes} module now makes it easier to use
589+
alternative MIME-type databases by the addition of a
590+
\class{MimeTypes} class, which takes a list of filenames to be
591+
parsed. (Contributed by Fred L. Drake, Jr.)
592+
588593
\end{itemize}
589594

590595

@@ -701,12 +706,19 @@ \section{Other Changes and Fixes}
701706

702707
\item On Windows, Python can now be compiled with Borland C thanks
703708
to a number of patches contributed by Stephen Hansen.
704-
709+
705710
\item Another Windows enhancement: Wise Solutions generously offered
706711
PythonLabs use of their InstallerMaster 8.1 system. Earlier
707712
PythonLabs Windows installers used Wise 5.0a, which was beginning to
708713
show its age. (Packaged up by Tim Peters.)
709714

715+
\item Files ending in \samp{.pyw} can now be imported on Windows.
716+
\samp{.pyw} is a Windows-only thing, used to indicate that a script
717+
needs to be run using PYTHONW.EXE instead of PYTHON.EXE in order to
718+
prevent a DOS console from popping up to display the output. This
719+
patch makes it possible to import such scripts, in case they're also
720+
usable as modules. (Implemented by David Bolen.)
721+
710722
\item On platforms where Python uses the C \cfunction{dlopen()} function
711723
to load extension modules, it's now possible to set the flags used
712724
by \cfunction{dlopen()} using the \function{sys.getdlopenflags()} and
@@ -720,7 +732,7 @@ \section{Acknowledgements}
720732

721733
The author would like to thank the following people for offering
722734
suggestions and corrections to various drafts of this article: Fred
723-
Bremmer, Fred L. Drake, Jr., Mark Hammond, Marc-Andr\'e Lemburg,
724-
Tim Peters, Neil Schemenauer, Guido van Rossum.
735+
Bremmer, Keith Briggs, Fred L. Drake, Jr., Mark Hammond, Marc-Andr\'e
736+
Lemburg, Tim Peters, Neil Schemenauer, Guido van Rossum.
725737

726738
\end{document}

0 commit comments

Comments
 (0)