0

I have a single python file that takes about an hour to run. Can I replace the whole file while its running without issues? I am aware if this question it does not address the concern of the python file being totally replaced with a new one.

Luke101
  • 63,072
  • 85
  • 231
  • 359
  • Thanks for pointing out the duplicate - from a file system standpoint every edit of a file results in its complete replacement, so your question is correctly answered there. – Tim Pietzcker Aug 30 '18 at 16:16

1 Answers1

0

Yes. The .py file is read into memory, compiled and run without further access.

Tim Pietzcker
  • 328,213
  • 58
  • 503
  • 561