[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

Eli Bendersky report at bugs.python.org
Sat Feb 11 08:41:29 CET 2012


Eli Bendersky <eliben at gmail.com> added the comment:

> I strongly feel that existing code importing ElementTree or cElementTree should not be broken.  Let’s add transparent import from _elementtree to ElementTree without breaking existing uses of cET.
>

AFAICS there's currently no disagreement on this point. The import
from cElementTree will keep working in 3.3 as it always had. However,
the explicit mention of cElementTree should be removed from the
documentation of ElementTree. The only remaining question is whether a
silent deprecation warning should be added in cElementTree.

> I think that 3.2 and 2.7 should get a doc note about cET, do we have a bug for this?
>

What doc note? Something in the spirit of: "Note that in 3.3, the
accelerated C implementation will be provided by default when
importing ElementTree" - or do you mean something else?

I don't think there's an open bug for this.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13988>
_______________________________________


More information about the Python-bugs-list mailing list