newbie Q: shortcuts for long module names?
Ken Godee
ken at perfect-image.com
Tue Nov 12 10:39:11 EST 2002
Couldn't you also.....
from this.is.a.long.module.name import *
Calling a top level attribute from the module couldn't
get any shorter than that.
this.is.a.long.module.name.dothis()
vs
dothis()
> Ian Bicking <ianb at colorstudy.com> wrote:
> > On Mon, 2002-11-11 at 21:34, Erik Max Francis wrote:
> >> Try
> >>
> >> import this.is.a.long.module.name as name
> >>
> >> or
> >>
> >> import this.is.a.long.module.name as somethingElse
> >
> > or
> > from this.is.a.deep.package import name
>
> You could even do:
>
> from this.is.a.deep.package import name as someOtherName
>
> if you want to.
More information about the Python-list
mailing list