Message284975
Some deprecated ElementTree features are deprecated only in the documentation or in Python implementation (that is virtually the same since C implementation is default). Proposed patch adds missed deprecations is code. It also makes warnings be ignored only in tests where they are expected. This is possible since converting doctests to unittests some time ago.
Added deprecations:
* Element.getchildren() and Element.getiterator() methods. They were deprecated in the documentation and in Python implementation in 2.7 and 3.2.
* The xml.etree.cElementTree module. Deprecated in the documentation in 3.3.
* The html argument of XMLParser. Deprecated in the documentation in 3.4.
Ned, is it appropriate to commit the patch (or its part) in 3.6? The discrepancy between Python and C implementation can be considered as a bug. What are your thoughts? |
|
Date |
User |
Action |
Args |
2017-01-08 11:13:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ned.deily |
2017-01-08 11:13:23 | serhiy.storchaka | set | messageid: <1483874003.49.0.675614316595.issue29204@psf.upfronthosting.co.za> |
2017-01-08 11:13:23 | serhiy.storchaka | link | issue29204 messages |
2017-01-08 11:13:23 | serhiy.storchaka | create | |
|