[Python-checkins] commit of r41652 - in python/trunk: Doc/whatsnew/whatsnew25.tex Lib/test/xmltests.py Lib/xml/__init__.py Misc/NEWS

fredrik.lundh python-checkins at python.org
Mon Dec 12 19:54:56 CET 2005


Author: fredrik.lundh
Date: Mon Dec 12 19:54:55 2005
New Revision: 41652
Modified:
 python/trunk/ (props changed)
 python/trunk/Doc/whatsnew/whatsnew25.tex
 python/trunk/Lib/test/xmltests.py
 python/trunk/Lib/xml/__init__.py
 python/trunk/Misc/NEWS
Log:
 r1068 at spiff: Fredrik | 2005年12月12日 19:50:30 +0100
 assorted xml.etree tweaks
 
Modified: python/trunk/Doc/whatsnew/whatsnew25.tex
==============================================================================
--- python/trunk/Doc/whatsnew/whatsnew25.tex	(original)
+++ python/trunk/Doc/whatsnew/whatsnew25.tex	Mon Dec 12 19:54:55 2005
@@ -421,6 +421,12 @@
 % 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 @@
 
 % XXX new distutils features: upload
 
+% XXX should hashlib perhaps be described here instead?
+% XXX should xml.etree perhaps be described here instead?
 
 
 
Modified: python/trunk/Lib/test/xmltests.py
==============================================================================
--- python/trunk/Lib/test/xmltests.py	(original)
+++ python/trunk/Lib/test/xmltests.py	Mon Dec 12 19:54:55 2005
@@ -15,5 +15,6 @@
 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")
Modified: python/trunk/Lib/xml/__init__.py
==============================================================================
--- python/trunk/Lib/xml/__init__.py	(original)
+++ python/trunk/Lib/xml/__init__.py	Mon Dec 12 19:54:55 2005
@@ -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 @@
 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>"
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Mon Dec 12 19:54:55 2005
@@ -292,6 +292,10 @@
 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.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /