Brecht Machiels added the comment: > You can import the pure python version in cPython by blocking the import > of > the C accelerator: > > import sys > sys.modules['_elementtree'] = None > import xml.etree.ElementTree
This will not work if xml.etree.ElementTree was already imported by another module, I think. Of course, you can take care of that case, but it doesn't get any prettier (I have done this for now). Any objections to making the pure Python versions available under a different name? ---------- _______________________________________ 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