[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Florent Xicluna
report at bugs.python.org
Fri Feb 10 22:39:52 CET 2012
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
The first step is to strip out the cElementTree bootstrap code from the C module.
I did it in the attached patch (plus removal of obsolete code for copy() in Python 2.4).
This passes the unmodified tests "test_xml_etree" and "test_xml_etree_c".
Then I think the right approach is to fold completely cElementTree behind ElementTree.
The cElementTree alias can be simply declared in Lib/xml/etree/__init__.py.
----------
keywords: +patch
Added file: http://bugs.python.org/file24479/issue13988_prepare_pep399.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13988>
_______________________________________
More information about the Python-bugs-list
mailing list