On Feb 1, 2011, at 12:16 PM, Massimo Di Pierro wrote:
>
> I agree with Armin that in the case of exec (and web2py uses exec),
> the self references are created whether you want them or not. That
> means one should not define classes in Models and Controllers. I have
> issued that warning already t
>From the usual source:
http://lucumr.pocoo.org/2011/2/1/exec-in-python/
My answer:
Armin suggests exec'ing in an environment and not in the outer
environment. That is what web2py does and in fact we already follow
much of the advice he gives us about about how to use exec. We just do
not follow
2 matches
Mail list logo