On 2016-09-13 23:00:25 +0100 (+0100), Paul Moore wrote: [...] > And things get significantly worse if we allow upgrades from the > Python prompt rather than just installs (e.g., if you have already > imported something from the old version and then upgrade). [...]
If you need it, and of course only if your software is actually written to handle it (contextually), there is a function to handle that: https://docs.python.org/2/library/functions.html#reload https://docs.python.org/3/library/importlib.html#importlib.reload I've used it in some very specific situations where you need to change out parts of a running daemon without restarting the process, but you really need a lot of extra care to get out of contexts utilizing the modules being reloaded if you want the replacements to actually be used. -- Jeremy Stanley _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig