python interpreter

s0suk3 at gmail.com s0suk3 at gmail.com
Tue Aug 12 10:58:52 EDT 2008


On Aug 12, 9:49 am, Alexandru  Mosoi <brtzsnr at gmail.com> wrote:
> I'm using python's interpreter's to run various commands (like a
> normal shell). However if sources are modified changes are not
> reflected so I have to restart interpreter. Is there any way to avoid
> restarting this?
>
> example:
>
> import blah
>
> blah.Blah()
> # ... blah.Blah() changed
>
> blah.Blah()
> # ... new behavior

blah = reload(blah)

Sebastian




More information about the Python-list mailing list