On Mon, Mar 8, 2010 at 7:39 PM, Aydın ŞEN <[email protected]> wrote:
> i think he is talking about:
>
> def logged():
>     return session.login==1

But that's still redundant (in Python at least). I compare:

if logged():
    do sth

and

if session.login:
    do sth

is pretty much the same, yeah? Cause, from the snipped above, I'd
assume the false login status would be 0, which == False.


-- 
Branko Vukelić

http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny
http://github.com/foxbunny

-- 
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