[Python-Dev] vox populii illiterati

Samuele Pedroni pedronis@bluewin.ch
Mon, 10 Feb 2003 04:39:37 +0100


From: "holger krekel" <pyth@devel.trillke.net>
> 
>      if obj.method() if hasattr(obj, 'method') else False:
> 

don't worry the pro-camp seems converging toward:

if if hasattr(obj,'method'): obj.method() else: False:

or

if (if hasattr(obj,'method'): obj.method() else: False):