]> granicus.if.org Git - python/commitdiff
r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100
authorFredrik Lundh <fredrik@pythonware.com>
Mon, 12 Dec 2005 18:54:55 +0000 (18:54 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Mon, 12 Dec 2005 18:54:55 +0000 (18:54 +0000)
 assorted xml.etree tweaks

Doc/whatsnew/whatsnew25.tex
Lib/test/xmltests.py
Lib/xml/__init__.py
Misc/NEWS

index ee1683dd2a8e0579515b7a3108117470b1e26e54..0b72f0467f5741dd25749b77efc10e135a492301 100644 (file)
@@ -421,6 +421,12 @@ using the mode \code{'r|*'}.
 % patch 918101
 (Contributed by Lars Gust\"abel.)
 
+\item A new package \module{xml.etree} has been added, which contains
+a subset of the ElementTree XML library.  Available modules are
+\module{ElementTree}, \module{ElementPath}, and
+\module{ElementInclude}, from ElementTree 1.2.6. (Contributed by
+Fredrik Lundh.)
+
 \item The \module{xmlrpclib} module now supports returning 
       \class{datetime} objects for the XML-RPC date type.  Supply 
       \code{use_datetime=True} to the \function{loads()} function
@@ -437,6 +443,8 @@ using the mode \code{'r|*'}.
 
 % XXX new distutils features: upload
 
+% XXX should hashlib perhaps be described here instead?
+% XXX should xml.etree perhaps be described here instead?
 
 
 
index 7963035be1d6bbdd7297c42f11561f1183a146a4..ced670b00f0803bdab73d19cfdc0a00010048b46 100644 (file)
@@ -15,5 +15,6 @@ def runtest(name):
 runtest("test.test_minidom")
 runtest("test.test_pyexpat")
 runtest("test.test_sax")
+runtest("test.test_xml_etree")
 runtest("test.test_xmllib")
 runtest("test.test_xmlrpc")
index 827439f3f37ef8704056806e56536c06d446e998..dc82f74ce1080b52697375cfd54751be37dec05e 100644 (file)
@@ -1,6 +1,6 @@
 """Core XML support for Python.
 
-This package contains three sub-packages:
+This package contains four sub-packages:
 
 dom -- The W3C Document Object Model.  This supports DOM Level 1 +
        Namespaces.
@@ -10,10 +10,14 @@ parsers -- Python wrappers for XML parsers (currently only supports Expat).
 sax -- The Simple API for XML, developed by XML-Dev, led by David
        Megginson and ported to Python by Lars Marius Garshol.  This
        supports the SAX 2 API.
+
+etree -- The ElementTree XML library.  This is a subset of the full
+       ElementTree XML release.
+
 """
 
 
-__all__ = ["dom", "parsers", "sax"]
+__all__ = ["dom", "parsers", "sax", "etree"]
 
 # When being checked-out without options, this has the form
 # "<dollar>Revision: x.y </dollar>"
index 691774ffb6d01c875ddcfe13d99c5c5ccc47df4e..d675706b54ca5b34a6901323868cb7221c8cb08c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -292,6 +292,10 @@ Extension Modules
 Library
 -------
 
+- Added a subset of Fredrik Lundh's ElementTree package.  Available
+  modules are xml.etree.ElementTree, xml.etree.ElementPath, and
+  xml.etree.ElementInclude, from ElementTree 1.2.6.
+
 - Patch #1162825: Support non-ASCII characters in IDLE window titles.
 
 - Bug #1365984: urllib now opens "data:" URLs again.