Ezio Melotti <ezio.melo...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13988>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to