On Tue, Nov 15, 2011 at 2:42 PM, Arnaud Delobelle <arno...@gmail.com> wrote:
> It's idiomatic to write "x is None" when you want to know whether x is None.

It's also idiomatic to just write "if x:" when you want to know
whether x is something or nothing, and that's what I would probably do
here.  Either is correct.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to