[issue19483] Pure-Python ElementTree classes no longer available since 3.3

R. David Murray report at bugs.python.org
Sun Nov 3 19:30:49 CET 2013


R. David Murray added the comment:

Yes, you have to do the sys.modules set at the start of your application.

The python module is what gets imported, it is just that the C classes override some of the classes from the Python module when they are imported.  So no, there's no way to make the pure python available in cPython other than blocking the _elementtree import at application startup.

If you want to discuss changing this fact, it would be a broader discussion in the context of PEP 399, and should take place on the python-dev mailing list.

----------

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


More information about the Python-bugs-list mailing list