Re: [Tutor] about importing a module

2007-07-23 Thread Luke Paireepinart
Tiger12506 wrote: >>> If the module has been imported before your code is run, it will be the >>> library module (very important if working in IDLE which importants many >>> modules, for example). >>> > > >> So... how does IDLE go about importanting a module? ;) >> > > It's not *ho

Re: [Tutor] about importing a module

2007-07-23 Thread Tiger12506
>> If the module has been imported before your code is run, it will be the >> library module (very important if working in IDLE which importants many >> modules, for example). > So... how does IDLE go about importanting a module? ;) It's not *how* IDLE imports the module, but that fact that IDL

Re: [Tutor] about importing a module

2007-07-19 Thread shawn bright
change the name of the module, simple. thanks shawn On 7/19/07, Tiger12506 <[EMAIL PROTECTED]> wrote: If the module has been imported before your code is run, it will be the library module (very important if working in IDLE which importants many modules, for example). But if it has not been imp

Re: [Tutor] about importing a module

2007-07-19 Thread Tiger12506
If the module has been imported before your code is run, it will be the library module (very important if working in IDLE which importants many modules, for example). But if it has not been imported before, the module in the current directory is imported first. You can check if a module has been

Re: [Tutor] about importing a module

2007-07-19 Thread Tiger12506
I'm pretty sure that the one in the current directory gets imported first. However, it is much simpler to just change the name of the module in the current directory. JS > hello there, > > if i have a module that is in the same directory as the file that imports > it, > but that module has the

Re: [Tutor] about importing a module

2007-07-19 Thread Kent Johnson
shawn bright wrote: > hello there, > > if i have a module that is in the same directory as the file that > imports it, > but that module has the same name as a module in my python path, which one > gets imported ? The local one. sys.path has the list of directories that are searched for imports

[Tutor] about importing a module

2007-07-19 Thread shawn bright
hello there, if i have a module that is in the same directory as the file that imports it, but that module has the same name as a module in my python path, which one gets imported ? i ask because i want to do some work on the module, but dont want to mess with my stable one in site-packages. so