[Python-3000] Changing the import machinery

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 22 02:33:29 CEST 2006


Ian Bicking wrote:

> No, I haven't; I assume you mean:
> 
>   from string import Template or from mypackage.backports.string24 
> import Template

No, I mean

   from string or mypackage.backports.string24 import Template

which seems to be about the least ugly it can get given
that you need to explicitly refer to a package name
that's already rather long and ugly in itself.

--
Greg


More information about the Python-3000 mailing list