Valerio
2017-11-05 11:50:21 UTC
Hello. I am experiencing a problem with the new version of Pyzo (4.x.x).
Let's say that I have a file called "example" with the following function
def tryFun():
print("Hello")
then another "main" file in the same directory, I have:
import example
example.tryFun()
when I execute this file, I obtain "Hello" as expected. However if now I
change the first file to
def tryFun():
print("why?")
and execute the main file again, the imported file is not updated, and thus
I will still have "Hello" on the console.
I think this shouldn't be the expected behavior: if I import example again,
I wish it to be reloaded in the kernel. This may lead to unexpected bugs.
Of course, reloading the shell solves this, but I shouldn't reload the
shell every time I change one of the imported files!
Finally, this was working on the previous version of Pyzo.
Any help is appreciated
Let's say that I have a file called "example" with the following function
def tryFun():
print("Hello")
then another "main" file in the same directory, I have:
import example
example.tryFun()
when I execute this file, I obtain "Hello" as expected. However if now I
change the first file to
def tryFun():
print("why?")
and execute the main file again, the imported file is not updated, and thus
I will still have "Hello" on the console.
I think this shouldn't be the expected behavior: if I import example again,
I wish it to be reloaded in the kernel. This may lead to unexpected bugs.
Of course, reloading the shell solves this, but I shouldn't reload the
shell every time I change one of the imported files!
Finally, this was working on the previous version of Pyzo.
Any help is appreciated
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.