1

Assume I have some python script - script.py, and I run it using

python script.py &

and now it runs for a long time and write some results to a file. Is it ok (i.e., it won't ruin the current run) to change script.py while it is running? can it affect the current run? I'm using Ubuntu if it matters. Thanks

AMC
  • 2,642
  • 7
  • 13
  • 35
MRm
  • 517
  • 2
  • 14
  • 2
    No, changes you make to the script while it's being run won't be seen in the interpreter that's already loaded the file – C.Nivs Apr 15 '20 at 16:37

1 Answers1

2

You can change the script, because when you start it, it's compiled to bytecode which is being executed.

scenox
  • 698
  • 7
  • 17