Hi Anand,

Thanks for the explanation. However I'm not sure to see benefit of not
reflecting the changes of a module after it has been imported with a
'from - import *'. In webpy it means that I do not have to prefix all
my methods in admin with admin for the reloader to work as expected.
It just seems inelegant and redundant. Thank you.

Alex

On Jan 7, 2:27 pm, Anand Chitipothu <[EMAIL PROTECTED]> wrote:
> On 07-Jan-08, at 6:31 PM, Alex K wrote:
>
>
>
> > Also why does it work fine on 0.2 but not on 0.23?
>
> It doesn't work in 0.2 either.
> But in 0.2, if you change the main file atleast once, then it works.
> This is due to a bug, which got fixed here[1].
>
> [1]:  http://codebrowse.launchpad.net/~anandology/webpy/webpy.dev/revision/...
>
> This is not really a problem, if you understand how import works.
>
> When you do `from foo import *` in a module, all the variables defined
> in foo gets added to the current namespace. After that even if foo is
> changed, there will not be any effect.
> In your case all classes from admin are added to main_site and after
> that admin module got reloaded, but it will not effect classes in
> main_site.
--~--~---------~--~----~------------~-------~--~----~
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