Nick Coghlan added the comment:
Since reload re-uses the existing namespace, having two names is less messy
when they're just aliases for the same module object (it still has all the
usual cache validity problems of any reload operation, but it doesn't have the
extra challenges of two differen
Brett Cannon added the comment:
The error from using -m stems from runpy not aliasing the module as both
"__main__" and "reloader". I suspect the reason is that having a module under
two names gets really messy because if you update just one of those modules you
leave the other one around and
John Lehmann added the comment:
I may not have been clear as to how the problem seems when working with a
web.py application:
* visit the web page, see something that needs fixing
* make the required change to app.py
* reload the webpage
* error occurs
--
_
New submission from John Lehmann:
In testing the py3 port for the web framework web.py, I found a limitation of
importlib.reload.
A module that was loaded via the command line cannot be reloaded with
importlib.reload.
The basic mode of operation for web.py is to create a web application as a