[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 09b52471f39ba280d836b945d47719c697af0b45 by Serhiy Storchaka in branch '2.7': bpo-30365: Backport warnings and fix bugs in ElementTree. (#1581) https://github.com/python/cpython/commit/09b52471f39ba280d836b945d47719c697af0b45 -- _

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: getchildren() and getiterator() were deprecated in Python implementation for years (since updating to ElementTree 1.3 in Python 2.7 and 3.2). And they are documented as deprecated. Just C implementation didn't emit warnings. It may be too late to add uncondi

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Stefan Behnel
Stefan Behnel added the comment: Looks good to me (didn't test it). Note that getchildren() is not deprecated in lxml because it's actually the fastest way to build a list of the children. It's faster than list(element) because it avoids the Python (C-level) iteration overhead. However, that

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1674 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch add warnings in ElementTree and cElementTree modules (backports issue29204) when run Python with the -3 option and fixes several bugs in the etree package and its tests: The deprecation warning about the doctype() method was emitted when use