This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brechtm
Recipients brechtm, eli.bendersky, r.david.murray, scoder
Date 2013-11-03.17:23:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383499414.35.0.562410514039.issue19483@psf.upfronthosting.co.za>
In-reply-to
Content
> 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?
History
Date User Action Args
2013-11-03 17:23:34brechtmsetrecipients: + brechtm, scoder, r.david.murray, eli.bendersky
2013-11-03 17:23:34brechtmsetmessageid: <1383499414.35.0.562410514039.issue19483@psf.upfronthosting.co.za>
2013-11-03 17:23:34brechtmlinkissue19483 messages
2013-11-03 17:23:34brechtmcreate