Author eli.bendersky
Recipients effbot, eli.bendersky, flox, scoder
Date 2012-02-10.14:52:55
SpamBayes Score 2.74505e-08
Marked as misclassified No
Message-id <1328885577.51.0.77313357168.issue13988@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-02-10 14:52:57eli.benderskysetrecipients: + eli.bendersky, effbot, scoder, flox
2012-02-10 14:52:57eli.benderskysetmessageid: <1328885577.51.0.77313357168.issue13988@psf.upfronthosting.co.za>
2012-02-10 14:52:56eli.benderskylinkissue13988 messages
2012-02-10 14:52:55eli.benderskycreate