|
17 | 17 | %\section{Introduction \label{intro}} |
18 | 18 |
|
19 | 19 | {\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.} |
22 | 22 |
|
23 | 23 | This article explains the new features in Python 2.3. The tentative |
24 | 24 | release date of Python 2.3 is currently scheduled for mid-2003. |
@@ -1366,8 +1366,13 @@ \section{New, Improved, and Deprecated Modules} |
1366 | 1366 | fairly easily with the new scripts \file{db2pickle.py} and |
1367 | 1367 | \file{pickle2db.py} which you will find in the distribution's |
1368 | 1368 | 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 |
1370 | 1370 | \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.) |
1371 | 1376 |
|
1372 | 1377 | \item The Distutils \class{Extension} class now supports |
1373 | 1378 | an extra constructor argument named \var{depends} for listing |
@@ -1746,11 +1751,6 @@ \section{New, Improved, and Deprecated Modules} |
1746 | 1751 |
|
1747 | 1752 | (Contributed by Raymond Hettinger.) |
1748 | 1753 |
|
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 | | - |
1754 | 1754 | item The \module{Tix} module has received various bug fixes and |
1755 | 1755 | updates for the current version of the Tix package. |
1756 | 1756 |
|
@@ -1791,34 +1791,39 @@ \section{New, Improved, and Deprecated Modules} |
1791 | 1791 |
|
1792 | 1792 | Any breakage caused by this change should be reported as a bug. |
1793 | 1793 |
|
| 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 | + |
1794 | 1806 | \item Support for internationalized domain names (RFCs 3454, 3490, |
1795 | 1807 | 3491, and 3492) has been added. The ``idna'' encoding can be used |
1796 | 1808 | to convert between a Unicode domain name and the ASCII-compatible |
1797 | | -encoding (ACE). |
| 1809 | +encoding (ACE) of that name. |
1798 | 1810 |
|
1799 | 1811 | \begin{alltt} |
1800 | 1812 | >>> u"www.Alliancefran\c{c}aise.nu".encode("idna") |
1801 | 1813 | 'www.xn--alliancefranaise-npb.nu' |
1802 | 1814 | \end{alltt} |
1803 | 1815 |
|
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. |
1811 | 1824 |
|
1812 | 1825 | 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. |
1822 | 1827 |
|
1823 | 1828 | \end{itemize} |
1824 | 1829 |
|
|
0 commit comments