Reloading modules(Python)

Published: 25 March 2020
on channel: Soumyashree Sahoo
800
8

Sometimes a Python program imports a module, but then the source code of the imported module needs to be changed. Since modules are executed only once when imported, changing the module's source does not immediately affect the running Python instance. Instead of restarting the entire Python program, the reload() function can be used to reload and re-execute the changed module. The reload() function is located in the imp standard library module.


On this page of the site you can watch the video online Reloading modules(Python) with a duration of hours minute second in good quality, which was uploaded by the user Soumyashree Sahoo 25 March 2020, share the link with friends and acquaintances, this video has already been watched 800 times on youtube and it was liked by 8 viewers. Enjoy your viewing!