tags:

views:

29

answers:

2

if I run a .py script, can I open a new terminal, modify the file and run it also?

i.e. does the file that I run get loaded in memory, such that I can modify the file and run it at the same time in a different terminal?

+2  A: 

Yes you can. Is this a hard thing to test yourself?

sberry2A
Maybe that is the question: Can *he*?
relet
+1 @relet, didn't think of that.
sberry2A
+2  A: 

Yes.

Here's my original test code.

while 1:
    print "This is the original."

Here's the modified code:

while 1:
    print "This is modified."
Matthew Rankin