]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36543: What's new: Document how to replace xml.etree.cElementTree (GH-19188)
authorMiro Hrončok <miro@hroncok.cz>
Fri, 27 Mar 2020 19:59:02 +0000 (20:59 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 19:59:02 +0000 (21:59 +0200)
Doc/whatsnew/3.9.rst

index a76445b3d8cbb01e3f7aa0701df124ecac6944dd..f58bcbcd3ce4e8e802f1c752d1eeda898bef4632 100644 (file)
@@ -671,7 +671,11 @@ Removed
   module have been removed.  They were deprecated in Python 3.2.
   Use ``iter(x)`` or ``list(x)`` instead of ``x.getchildren()`` and
   ``x.iter()`` or ``list(x.iter())`` instead of ``x.getiterator()``.
-  The ``xml.etree.cElementTree`` module has been removed.
+  The ``xml.etree.cElementTree`` module has been removed,
+  use the :mod:`xml.etree.ElementTree` module instead.
+  Since Python 3.3 the ``xml.etree.cElementTree`` module has been deprecated,
+  the ``xml.etree.ElementTree`` module uses a fast implementation whenever
+  available.
   (Contributed by Serhiy Storchaka in :issue:`36543`.)
 
 * The old :mod:`plistlib` API has been removed, it was deprecated since Python