On 3 jan 2008, at 02.19, Raymond Hettinger wrote: > How about a new, simpler syntax: > > * import threading or dummy_threading as threading > > * import xml.etree.CElementTree or cElementTree or > elementree.ElementTree as ET > > * from cStringIO or StringIO import StringIO > > * import readline or emptymodule Wouldn't a (stdlib) function suffice in the cases where this is needed? ET = import_with_alternative("xml.etree.CElementTree", "cElementTree", "elementtree.ElementTree") It's not as elegant, but it's easier than status quo. //Simon
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4