mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
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>
This commit is contained in:
parent
c7ad974d34
commit
7a5cbc7298
1 changed files with 7 additions and 4 deletions
|
@ -605,10 +605,13 @@ Removed
|
||||||
Use :meth:`~threading.Thread.is_alive()` instead.
|
Use :meth:`~threading.Thread.is_alive()` instead.
|
||||||
(Contributed by Dong-hee Na in :issue:`37804`.)
|
(Contributed by Dong-hee Na in :issue:`37804`.)
|
||||||
|
|
||||||
* Methods ``getchildren()`` and ``getiterator()`` in the
|
* Methods ``getchildren()`` and ``getiterator()`` of classes
|
||||||
:mod:`~xml.etree.ElementTree` module have been removed. They were
|
:class:`~xml.etree.ElementTree.ElementTree` and
|
||||||
deprecated in Python 3.2. Use functions :func:`list` and :func:`iter`
|
:class:`~xml.etree.ElementTree.Element` in the :mod:`~xml.etree.ElementTree`
|
||||||
instead. The ``xml.etree.cElementTree`` module has been 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.
|
||||||
(Contributed by Serhiy Storchaka in :issue:`36543`.)
|
(Contributed by Serhiy Storchaka in :issue:`36543`.)
|
||||||
|
|
||||||
* The old :mod:`plistlib` API has been removed, it was deprecated since Python
|
* The old :mod:`plistlib` API has been removed, it was deprecated since Python
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue