The reload command is great for interactive development, but I don't see an 
equivalent with I import into the __builtins__ dictionary with the "from 
<module> import *" command. Reload(<module>) fails in this case.   Its as 
if Python loses track of where it got the import from.

Interestingly when using a module alias,  for example "import <module> as 
<alias> ", reload can be used on the alias name:
reload(<alias>)

-john mark

At 11:27 AM 8/24/2002 -0700, Bruce Peterson wrote:
>PythonWin has a check button that saves the file and runs tab nanny -- 
>I've found that this kills two birds -- reloads the file and checks for 
>indentation and a few other errors.
>
>
>At 07:03 PM 8/23/2002 +0000, you wrote:
>>Coming from the Perl World and just found out about reloading. In a case of
>>were a little knowledge goes a long way, thought that if the source file was
>>changed then the interpreter would recompile the source code into byte code
>>and run that.
>>
>>Found the reload button.
>>
>>Is there a way of forcing the script to reload everytime it is run as a
>>'development' mode?  Is there a command line switch that I could pass to
>>force Python to always reload? Or is there a way to force the reload of
>>everything like:
>>
>>r_reload(*)
>
>Bruce Peterson
>Terastat, Inc
>Information Access Systems
>Voice (425) 466 7344
>Fax (206) 350 3685
>
>_______________________________________________
>ActivePython mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
>

|____________________________________________________|
John Mark Agosta            [EMAIL PROTECTED]      www.agosta.org

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to