Re: using reload() with "from ... import *"

2002-09-23 Thread Jeff Shannon
John Mark Agosta wrote: > Matthew - > > Yes, its pretty clever, I tried it. I noticed that on subsequent edits you > don't have to re-execute the > "import ftplib", which is convenient if you are entering this manually. Note that there are other reasons for avoiding "from module import *", and

Re: using reload() with "from ... import *"

2002-09-23 Thread John Mark Agosta
Matthew - Yes, its pretty clever, I tried it. I noticed that on subsequent edits you don't have to re-execute the "import ftplib", which is convenient if you are entering this manually. Thanks -john mark At 07:55 AM 9/24/2002 +1200, Matthew Sherborne wrote: >I think this will work... > >fr

Re: using reload() with "from ... import *"

2002-09-23 Thread Matthew Sherborne
I think this will work... from ftplib import * ... # reload code below import ftplib reload(ftplib) from ftplib import * That should update all the stuff that was imported by ftplib the first time. But you'll have to call it in global space in order to update global space. I vaguely

Re: using reload() with "from ... import *"

2002-09-23 Thread Jeff Shannon
John Mark Agosta wrote: > During interactive development one can reload modules that have been > imported and modified by doing a reload(module_name). How does this work > if the module was imported into the main module with the "from ... import > *" form? Is there a way to reload() them? Not

using reload() with "from ... import *"

2002-09-21 Thread John Mark Agosta
During interactive development one can reload modules that have been imported and modified by doing a reload(module_name). How does this work if the module was imported into the main module with the "from ... import *" form? Is there a way to reload() them? |___