I note that standard modules have just been imported: these are other modules that are reloaded. I expect that the person who wrote this code would like to easily reload the whole package (to get their latest changes). After entering all these redundant calls reload programmer needed to write
>>> reload(package)
to update information in the interpreter, instead of typing
>>> reload(package.nrrd) >>> reload(package.sm) >>> reload(package.tensPP)
etc .. Therefore, please ignore the suggestion that you are committing violence against the programmer who wrote this: they are far from the only programmer who had problems reloading dependencies. Just ask them to move the reboot to a convenient function.
source share