Skip to content

Commit 6467134

Browse files
authored
bpo-36543: What's new: Document how to replace xml.etree.cElementTree (pythonGH-19188)
1 parent b61b818 commit 6467134

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Doc/whatsnew/3.9.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,11 @@ Removed
671671
module have been removed. They were deprecated in Python 3.2.
672672
Use ``iter(x)`` or ``list(x)`` instead of ``x.getchildren()`` and
673673
``x.iter()`` or ``list(x.iter())`` instead of ``x.getiterator()``.
674-
The ``xml.etree.cElementTree`` module has been removed.
674+
The ``xml.etree.cElementTree`` module has been removed,
675+
use the :mod:`xml.etree.ElementTree` module instead.
676+
Since Python 3.3 the ``xml.etree.cElementTree`` module has been deprecated,
677+
the ``xml.etree.ElementTree`` module uses a fast implementation whenever
678+
available.
675679
(Contributed by Serhiy Storchaka in :issue:`36543`.)
676680

677681
* The old :mod:`plistlib` API has been removed, it was deprecated since Python

0 commit comments

Comments
 (0)