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
  • 59,479
  • 80
  • 216
  • 348
  • 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
  • 313,408
  • 56
  • 485
  • 544