Re: [web2py] Reading documentation... question about example

2012-06-12 Thread Manuele Pesenti
Il 12/06/2012 08:45, xor ha scritto: http://web2py.com/books/default/chapter/29/3#Let%27s-count On this link there is an example that tests the existence of a variable by just doing this: if not session.counter: I don't understand this. In python to test the existence of a variable I need to c

[web2py] Reading documentation... question about example

2012-06-12 Thread xor
http://web2py.com/books/default/chapter/29/3#Let%27s-count On this link there is an example that tests the existence of a variable by just doing this: if not session.counter: I don't understand this. In python to test the existence of a variable I need to catch exceptions. How would this code wo