Message153052
Following the discussion on python-dev [1], this issue will track the re-organization of Lib/xml/etree to expose the C implementation (_elementtree) by default when importing ElementTree. The test suite will also have to be updated - it's required that it exercises both the C and the Python implementations.
I would like to make the import "magic" simple. Thus, the idea I currently plan to pursue is:
* xml/etree/ElementTree.py will be a simple facade that attempts to 'import *' from _elementtree, and on failure does 'import *' from pyElementTree
* The current contents of xml/etree/ElementTree.py will move to xml/etree/pyElementTree.py
* xml/etree/cElementTree.py disappears.
The test suite will be modified accordingly.
I'll be working on creating a patch for this. Any help, ideas, comments and discussions are more than welcome.
[1] http://mail.python.org/pipermail/python-dev/2012-February/116278.html |
|
Date |
User |
Action |
Args |
2012-02-10 14:52:57 | eli.bendersky | set | recipients:
+ eli.bendersky, effbot, scoder, flox |
2012-02-10 14:52:57 | eli.bendersky | set | messageid: <1328885577.51.0.77313357168.issue13988@psf.upfronthosting.co.za> |
2012-02-10 14:52:56 | eli.bendersky | link | issue13988 messages |
2012-02-10 14:52:55 | eli.bendersky | create | |
|