[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Ezio Melotti
report at bugs.python.org
Fri Feb 10 17:46:24 CET 2012
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
> In xml/etree there is:
> - ElementTree: tries to import cElementTree. On success, done. On
> ImportError, imports pyElementTree
> - pyElementTree: the pure Python implementation
> - cElementTree: sets up the bootstrap Python code and tries to import
> _elementtree. In case of an error, propagates an ImportError up.
What I had in mind is more like:
- ElementTree: defines the python code and if _elementtree is available overrides part of it with the functions imported from it;
- cElementTree: at this point it could just be a deprecated alias for ElementTree
----------
stage: -> needs patch
type: -> performance
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13988>
_______________________________________
More information about the Python-bugs-list
mailing list