[New-bugs-announce] [issue29209] Remove old-deprecated ElementTree features
Serhiy Storchaka
report at bugs.python.org
Sun Jan 8 12:56:25 EST 2017
New submission from Serhiy Storchaka:
Proposed patch removes old-deprecated ElementTree features.
* Methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() deprecated in 2.7 and 3.2.
Use list(elem) or iteration instead of getchildren(), methods iter() instead of getiterator().
* The html argument of XMLParser deprecated in 3.4.
The rest of arguments are keyword-only now (passing them as keywords was recommended in the documentatin).
* The support of the doctype() method of XMLParser subclasses and its default implementation. Deprecated in 3.2. Define the doctype() method on a custom TreeBuilder target instead.
* The xml.etree.cElementTree module deprecated in 3.3.
Unfortunately some of these deprecations are in the documentation only or in Python implementatation, but not in C implementatation. Perhaps missed warnings should be added first (see issue29204). But if commit the patch from issue29204 in 3.6, perhaps deprecated features could be removed in 3.7.
----------
components: Extension Modules, Library (Lib), XML
files: etree_remove_deprecated.patch
keywords: patch
messages: 285000
nosy: eli.bendersky, ned.deily, scoder, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Remove old-deprecated ElementTree features
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file46216/etree_remove_deprecated.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29209>
_______________________________________
More information about the New-bugs-announce
mailing list