Message202040
> 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? |
|
Date |
User |
Action |
Args |
2013-11-03 17:23:34 | brechtm | set | recipients:
+ brechtm, scoder, r.david.murray, eli.bendersky |
2013-11-03 17:23:34 | brechtm | set | messageid: <1383499414.35.0.562410514039.issue19483@psf.upfronthosting.co.za> |
2013-11-03 17:23:34 | brechtm | link | issue19483 messages |
2013-11-03 17:23:34 | brechtm | create | |
|