This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients eli.bendersky, scoder, serhiy.storchaka
Date 2019-04-06.16:06:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The proposed PR removes old-deprecated ElementTree features.

* Methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() deprecated in 2.7 and 3.2. They were deprecated in the documentation only, and started to emit a warning in 3.8. Use list(elem) or iteration instead of getchildren(), methods iter() instead of getiterator().

* The xml.etree.cElementTree module deprecated in 3.3. It was deprecated documentation only because adding a runtime warning will cause more harm than removing it because of the common idiom of using it since Python 2:

        import xml.etree.cElementTree as ET
    except ImportError:
        import xml.etree.ElementTree as ET

TODO: Add a What's New entry after the start of developing 3.9.
Date User Action Args
2019-04-06 16:06:22serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, eli.bendersky
2019-04-06 16:06:22serhiy.storchakasetmessageid: <>
2019-04-06 16:06:22serhiy.storchakalinkissue36543 messages
2019-04-06 16:06:22serhiy.storchakacreate