"Lisi" wrote
A shortcut is to do your import like this:
from ex25 import *
Is this a new and wonderful meaning of the word "shortcut"?
No, it just saves you typing ex25. in front of every name in the
module.
Of course, the "import *" technique is frowned upon because
of the risk of in
On Thu, Jul 7, 2011 at 7:30 AM, Noah Hall wrote:
> On Thu, Jul 7, 2011 at 3:17 PM, Lisi wrote:
> > Hi! :-)
> >
> > >From the book I am working from:
> >
> > A shortcut is to do your import like this:
> > from ex25 import *
> >
> > Is this a new and wonderful meaning of the word "shortcut"?
>
On Thu, Jul 7, 2011 at 3:17 PM, Lisi wrote:
> Hi! :-)
>
> >From the book I am working from:
>
> A shortcut is to do your import like this:
> from ex25 import *
>
> Is this a new and wonderful meaning of the word "shortcut"? _Why_, _how_ is
> that a shortcut for:
>
> import ex25
>
> when it has
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 wrote:
> Hi! :-)
>
> >From the book I am working from:
>
> A shortcut is to do your import like this:
> from ex25 import *
>
> Is this a new and wonderful meaning of
Hi! :-)
>From the book I am working from:
A shortcut is to do your import like this:
from ex25 import *
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