2010/5/24 Alex K <[email protected]>:
> Hello,
>
> The reloader works fine when modules are imported as "import X".
> However when imported as from A import B, B does get reloaded. I think
> it would be much simpler if every module would be reloaded when in
> debug mode. It wouldn't force me to write my imports as "import A.B as
> B".

The reloaded reloads all the modified packages. If you have x.py with
"from a import b" and a.py get modified, module a will be reloaded.
The module x will still have the old reference to the b.

I don't think reloading all the modules is a nice idea. Even if we do
that, it might require two reloading passes to avoid the
inconsistencies due to the order of imports.

Anand

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to