Re:Hot-swapping Python 3 code
by erikschoster on Sunday June 14, 2020 @02:11AM
(#23515499)
Looks like it starts a thread that repeatedly hashes the content of the target script to poll for changes. Watchdog uses OS features like inotify and FSEvents and only uses polling and comparing hashes as a fallback.
https://pythonhosted.org/watchdog/