[Python-3000] Changing the import machinery

Thomas Wouters thomas at python.org
Fri Apr 21 18:27:44 CEST 2006


On 4/21/06, Ian Bicking <ianb at colorstudy.com> wrote:
>
> Greg Ewing wrote:
>
> > Have you seen my proposal for "or" in import statements?
> > Would you consider that elegant enough?
>
> No, I haven't; I assume you mean:
>
>    from string import Template or from mypackage.backports.string24
> import Template
>
> ... that (realistic) example doesn't look very pretty :(


The suggestion was

  from string or mypackage.backports.string24 import Template

which looks a bit better.

--
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20060421/859e2a6d/attachment.html 


More information about the Python-3000 mailing list