summaryrefslogtreecommitdiff
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorRahul Kumaresan <kayrahul@gmail.com>2020-03-14 11:20:24 +0530
committerGitHub <noreply@github.com>2020-03-14 11:20:24 +0530
commit7a5cbc72988aee668816be9d1ef44c0cb4081ff6 (patch)
tree2d4e095378f74dd3e661bded0214c0e17229da27 /Doc/whatsnew
parentc7ad974d341d3edb6b9d2a2dcae4d3d4794ada6b (diff)
downloadcpython-git-7a5cbc72988aee668816be9d1ef44c0cb4081ff6.tar.gz
bpo-39937: Improve suggestions for removal of getchildren and getiterator in changelog (GH-18937)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.9.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 4ef82feba1..fc91870739 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -605,10 +605,13 @@ Removed
Use :meth:`~threading.Thread.is_alive()` instead.
(Contributed by Dong-hee Na in :issue:`37804`.)
-* Methods ``getchildren()`` and ``getiterator()`` in the
- :mod:`~xml.etree.ElementTree` module have been removed. They were
- deprecated in Python 3.2. Use functions :func:`list` and :func:`iter`
- instead. The ``xml.etree.cElementTree`` module has been removed.
+* Methods ``getchildren()`` and ``getiterator()`` of classes
+ :class:`~xml.etree.ElementTree.ElementTree` and
+ :class:`~xml.etree.ElementTree.Element` in the :mod:`~xml.etree.ElementTree`
+ 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.
(Contributed by Serhiy Storchaka in :issue:`36543`.)
* The old :mod:`plistlib` API has been removed, it was deprecated since Python