"fileexit" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> Shouldn't python recompile a module if there is a later version of the
> code (.py file)? While i am debuging, i always have to exit python and
> delete the pyc before every run, then start it again and import the
> modu
"fileexit" <[EMAIL PROTECTED]> wrote:
> Shouldn't python recompile a module if there is a later version of the
> code (.py file)?
it does, when the module is first loaded.
> While i am debuging, i always have to exit python and
> delete the pyc before every run
deleting the PYC shouldn't be nec
Instead of exiting the interpreter, you can use reload() : see the
section "Built-in functions" in the library reference
"reload( module)
Reload a previously imported module. The argument must be a module
object, so it must have been successfully imported before. This is
useful if you have edited
Hi,
Shouldn't python recompile a module if there is a later version of the
code (.py file)? While i am debuging, i always have to exit python and
delete the pyc before every run, then start it again and import the
modules. It seems that this is the only way for it to recompile the
new code.
What