[issue29204] Add code deprecations in ElementTree

2018-05-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +6450 ___ Python tracker ___

[issue29204] Add code deprecations in ElementTree

2017-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The deprecation of the cElementTree module was excluded. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29204] Add code deprecations in ElementTree

2017-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 762ec97ea68a1126b8855996c61fa8239dc9fff7 by Serhiy Storchaka in branch 'master': bpo-29204: Emit warnings for already deprecated ElementTree features. (#773) https://github.com/python/cpython/commit/762ec97ea68a1126b8855996c61fa8239dc9fff7

[issue29204] Add code deprecations in ElementTree

2017-03-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +679 ___ Python tracker ___ ___

[issue29204] Add code deprecations in ElementTree

2017-01-08 Thread Stefan Behnel
Stefan Behnel added the comment: I'm ok with the deprecations. Regarding the cElementTree module, this is a bit problematic. The idiomatic import has lost its use in Py2.5 when ET and cET were added to the stdlib, so code that was written for Py2.5 or later (e.g. because it uses generators)

[issue29204] Add code deprecations in ElementTree

2017-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I have a doubt about this too. Perhaps it can be just removed. The idiomatic code in Python 2 is: try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET --

[issue29204] Add code deprecations in ElementTree

2017-01-08 Thread Martin Panter
Martin Panter added the comment: Isn’t cElementTree useful and recommended in 2.7? It would be awkward to deprecate it in Python 3. But I guess the other cases should be okay to deprecate in 3.7. -- nosy: +martin.panter ___ Python tracker

[issue29204] Add code deprecations in ElementTree

2017-01-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eli.bendersky, scoder ___ Python tracker ___

[issue29204] Add code deprecations in ElementTree

2017-01-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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