[web2py] Re: Execution of import statements

2016-04-29 Thread Niphlod
it's like math with parenthesis... if b == 1: import a will trigger "import a" when b == 1 . the first time b==1 it'd be a real import, the second time it'd be a no-op if b is never going to be == 1, import will be never triggered. On Friday, April 29, 2016 at 3:32:05 PM UTC+2, Mark

[web2py] Re: Execution of import statements

2016-04-29 Thread Mark Billion
Right, but if the import is a conditional one -- ie, only import a if a condition evals to true -- does it no op the import if the condition goes to false or does it import all and then execute? On Friday, April 29, 2016 at 3:23:40 AM UTC-4, Niphlod wrote: > > in python if you have > > >

[web2py] Re: Execution of import statements

2016-04-29 Thread Niphlod
in python if you have import a blablabla import b blablabla import a the second "import a" statement is executed, but is a no-op. On Friday, April 29, 2016 at 1:20:59 AM UTC+2, Mark Billion wrote: > > I understand that the whole default.py file is executed on each request to > a function