Re: [Tutor] Python conundrum

2011-07-07 Thread Alan Gauld
"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

Re: [Tutor] Python conundrum

2011-07-07 Thread Marc Tompkins
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"? >

Re: [Tutor] Python conundrum

2011-07-07 Thread Noah Hall
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

Re: [Tutor] Python conundrum

2011-07-07 Thread Здравко Иванов
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

[Tutor] Python conundrum

2011-07-07 Thread Lisi
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