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

Skip to content

Commit e36b690

Browse files
committed
Mention the bz2 module
Various rewrites
1 parent b4cb664 commit e36b690

1 file changed

Lines changed: 30 additions & 25 deletions

File tree

Doc/whatsnew/whatsnew23.tex

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
%\section{Introduction \label{intro}}
1818

1919
{\large This article is a draft, and is currently up to date for
20-
Python 2.3alpha2. Please send any additions, comments or errata to
21-
the author.}
20+
Python 2.3beta1. Please send any additions, comments or errata to the
21+
author.}
2222

2323
This article explains the new features in Python 2.3. The tentative
2424
release date of Python 2.3 is currently scheduled for mid-2003.
@@ -1366,8 +1366,13 @@ \section{New, Improved, and Deprecated Modules}
13661366
fairly easily with the new scripts \file{db2pickle.py} and
13671367
\file{pickle2db.py} which you will find in the distribution's
13681368
Tools/scripts directory. If you've already been using the PyBSDDB
1369-
package, importing it as \module{bsddb3}, you will have to change your
1369+
package and importing it as \module{bsddb3}, you will have to change your
13701370
\code{import} statements.
1371+
1372+
\item The new \module{bz2} module is an interface to the bz2 data
1373+
compression library. bz2 usually produces output that's smaller than
1374+
the compressed output from the \module{zlib} module, meaning that it
1375+
compresses data more highly. (Contributed by Gustavo Niemeyer.)
13711376

13721377
\item The Distutils \class{Extension} class now supports
13731378
an extra constructor argument named \var{depends} for listing
@@ -1746,11 +1751,6 @@ \section{New, Improved, and Deprecated Modules}
17461751

17471752
(Contributed by Raymond Hettinger.)
17481753

1749-
\item The DOM implementation
1750-
in \module{xml.dom.minidom} can now generate XML output in a
1751-
particular encoding by providing an optional encoding argument to
1752-
the \method{toxml()} and \method{toprettyxml()} methods of DOM nodes.
1753-
17541754
item The \module{Tix} module has received various bug fixes and
17551755
updates for the current version of the Tix package.
17561756

@@ -1791,34 +1791,39 @@ \section{New, Improved, and Deprecated Modules}
17911791

17921792
Any breakage caused by this change should be reported as a bug.
17931793

1794+
\item The DOM implementation
1795+
in \module{xml.dom.minidom} can now generate XML output in a
1796+
particular encoding by providing an optional encoding argument to
1797+
the \method{toxml()} and \method{toprettyxml()} methods of DOM nodes.
1798+
1799+
\item The new \module{DocXMLRPCServer} module allows writing
1800+
self-documenting XML-RPC servers. Run it in demo mode (as a program)
1801+
to see it in action. Pointing the Web browser to the RPC server
1802+
produces pydoc-style documentation; pointing xmlrpclib to the
1803+
server allows invoking the actual methods.
1804+
(Contributed by Brian Quinlan.)
1805+
17941806
\item Support for internationalized domain names (RFCs 3454, 3490,
17951807
3491, and 3492) has been added. The ``idna'' encoding can be used
17961808
to convert between a Unicode domain name and the ASCII-compatible
1797-
encoding (ACE).
1809+
encoding (ACE) of that name.
17981810

17991811
\begin{alltt}
18001812
>>> u"www.Alliancefran\c{c}aise.nu".encode("idna")
18011813
'www.xn--alliancefranaise-npb.nu'
18021814
\end{alltt}
18031815

1804-
In addition, the \module{socket} has been extended to transparently
1805-
convert Unicode hostnames to the ACE before passing them to the C
1806-
library. In turn, modules that pass hostnames ``through'' (such as
1807-
\module{httplib}, \module{ftplib}) also support Unicode host names
1808-
(httplib also sends ACE Host: headers). \module{urllib} supports
1809-
Unicode URLs with non-ASCII host names as long as the \code{path} part
1810-
of the URL is ASCII only.
1816+
The \module{socket} module has also been extended to transparently
1817+
convert Unicode hostnames to the ACE version before passing them to
1818+
the C library. Modules that deal with hostnames such as
1819+
\module{httplib} and \module{ftplib}) also support Unicode host names;
1820+
\module{httplib} also sends HTTP \samp{Host} headers using the ACE
1821+
version of the domain name. \module{urllib} supports Unicode URLs
1822+
with non-ASCII host names as long as the \code{path} part of the URL
1823+
is ASCII only.
18111824

18121825
To implement this change, the module \module{stringprep}, the tool
1813-
\code{mkstringprep} and the \code{punycode} encoding have been added.
1814-
1815-
\item The new \module{DocXMLRPCServer} allows to write
1816-
self-documenting XML-RPC servers. Run it in demo mode (as a program)
1817-
to see it in action: Pointing the Web browser to the RPC server
1818-
produces pydoc-style documentation; pointing xmlrpclib to the
1819-
server allows to invoke the actual methods.
1820-
1821-
Contributed by Brian Quinlan.
1826+
\code{mkstringprep} and the \code{punycode} encoding have been added.
18221827

18231828
\end{itemize}
18241829

0 commit comments

Comments
 (0)