HNHacker News
TopNewBestAskShowJobs

brodul

4 karma · joined December 15, 2013

submissionscomments
brodul··on Hot-swapping Python 3 code
As other have pointed out, the best way is to restart the process. If you are looking for hot reloading you should look at programming languages that run in BEAM like Erlang and Elixir[1].

There are some gotchas with hot swapping, but it's designed and used in production for many years [2].

If somebody knows other languages/systems that do let me know.

1. https://elixir-lang.org/ 2. https://stackoverflow.com/questions/37368376/how-does-erlang...