Reloading modules(Python)

Опубликовано: 25 Март 2020
на канале: Soumyashree Sahoo
762
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.


Смотрите видео Reloading modules(Python) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Soumyashree Sahoo 25 Март 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 762 раз и оно понравилось 8 людям.