From eefb1363c8b62032cebfa80529d9dd1e1d05217a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 27 Mar 2020 11:37:24 +0100 Subject: [PATCH 1/2] bpo-36543: What's new: Document how to replace xml.etree.cElementTree --- Doc/whatsnew/3.9.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index 778e443f8d0777..7cac039b8a0ed8 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -666,7 +666,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 ``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 From e7bf8ea17f58dba667c8c9e16afd7fc3cab4db0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 27 Mar 2020 12:57:34 +0100 Subject: [PATCH 2/2] Link to xml.etree.ElementTree Co-Authored-By: Serhiy Storchaka --- Doc/whatsnew/3.9.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index 7cac039b8a0ed8..720e3958773eca 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -667,7 +667,7 @@ Removed 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, - use the ``xml.etree.ElementTree`` module instead. + 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.