Author ezio.melotti
Recipients effbot, eli.bendersky, ezio.melotti, flox, scoder
Date 2012-02-10.16:46:24
SpamBayes Score 4.55376e-06
Marked as misclassified No
Message-id <1328892384.82.0.513733843252.issue13988@psf.upfronthosting.co.za>
In-reply-to
Content
> In xml/etree there is:
> - ElementTree: tries to import cElementTree. On success, done. On
>   ImportError, imports pyElementTree
> - pyElementTree: the pure Python implementation
> - cElementTree: sets up the bootstrap Python code and tries to import
>   _elementtree. In case of an error, propagates an ImportError up.

What I had in mind is more like:
 - ElementTree: defines the python code and if _elementtree is available overrides part of it with the functions imported from it;
 - cElementTree: at this point it could just be a deprecated alias for ElementTree
History
Date User Action Args
2012-02-10 16:46:24ezio.melottisetrecipients: + ezio.melotti, effbot, scoder, eli.bendersky, flox
2012-02-10 16:46:24ezio.melottisetmessageid: <1328892384.82.0.513733843252.issue13988@psf.upfronthosting.co.za>
2012-02-10 16:46:24ezio.melottilinkissue13988 messages
2012-02-10 16:46:24ezio.melotticreate