[Python-Dev] elementtree in stdlib

Trent Mick trentm at ActiveState.com
Thu Apr 6 21:52:16 CEST 2006


[Fredrik Lundh wrote]
> Trent Mick wrote:
> 
> > That is the current state.
> 
> which reminds that maybe it's time to add an import helper to
> the standard library, so you can do
> 
>     stringio = import_search("cStringIO", "StringIO")
>     ET = import_search("lxml.etree", "cElementTree", "xml.etree.cElementTree")
>     db = import_search("superdb", "sqlite3", "fancydb", "dumbdb")

To the 'imp' module? Hrm, would then maybe want to change the docs from:

    3.21 imp -- Access the import internals 

to

    3.21 imp -- Access the import internals and some other useful importing stuff

:)

Trent

-- 
Trent Mick
TrentM at ActiveState.com


More information about the Python-Dev mailing list