On 11 May 2011 12:14:46 GMT, Steven D'Aprano
  <steve+comp.lang.pyt...@pearwood.info> wrote:
:  Not knowing that you can write "if x" instead of "if x == []" is like not 
:  knowing that you can write 
: 
:      elif condition
: 
:  instead of 
: 
:      else:
:          if condition

My concern was with the reader and not the writer.

What could elif mean other than else: if?

if x could, for instance,  mean "if x is defined".


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

Reply via email to