[Tutor] Python conundrum

Здравко Иванов z.radoslavov at gmail.com
Thu Jul 7 16:27:37 CEST 2011


if you type from ex25 import * then you don't have to put ex25. in front of
the functions.

On Thu, Jul 7, 2011 at 5:17 PM, Lisi <lisi.reisz at gmail.com> wrote:

> Hi! :-)
>
> >From the book I am working from:
>
> <quote> A shortcut is to do your import like this:
> from ex25 import  * </quote>
>
> Is this a new and wonderful meaning of the word "shortcut"?  _Why_, _how_
> is
> that a shortcut for:
>
> import ex25
>
> when it has seven *more* characters (counting the spaces)?  Or, put another
> way, twice as many words? :-/
>
> It is obviously an alternative, but I just don't get that it is a shortcut.
>
> Thanks,
> Lisi
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110707/3380c5bf/attachment.html>


More information about the Tutor mailing list