On Nov 24, 7:52 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote:
> Sorry for the title but I didn't find anything more appropriate.
> To have a less verbose code would it be ok doing:
>
> if a > b:
>
> ...instead of:
>
> if a is not None and a > b:
>
> ...?
> Is there any hidden complication behind that?
> Thanks in advance
>
> --- Giampaolo
> code.google.com/p/pyftpdlib/

you are doing 2 different things there
the first only ask "IS a greater than b?"
the second ask "IF a IS NOT none and a IS greater than b"
one is not shorthand for the other in all circumstances!

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to