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