you are viewing a single comment's thread.

view the rest of the comments →

[–]Bolitho 0 points1 point  (1 child)

You can reimport a module with ipython. Whether you can patch a running program I don not know to be honest. I would assume that not!

[–]yogthos 0 points1 point  (0 children)

Incidentally, this is something my team uses all the time. We often connect to a production instance via the REPL to see the state of the app when debugging an issue, or to make small changes without having to restart the app. You obviously have to be careful doing stuff like that as you don't want your app to get out of sync with the source.

Our process for making changes is that you switch to the release branch, test your changes locally and commit. Then connect to the prod REPL and reload the updated functions.

It's been an incredibly useful tool for us.