Forgetting "()" when calling methods

Jeremy Fincher tweedgeezer at
Sun Apr 27 07:15:03 CEST 2003

Frantisek Fuka <fuka at> wrote in message news:<b8cadp$1fj9$1 at>...
> When I try to call methods, I sometimes forget to include the 
> parentheses. Instead of:
> if object.isGreen():
> 	do something...
> i sometimes write:
> if object.isGreen:
> 	do something...

Perhaps the answer is to remove the __nonzero__ method on
functions/methods.  Logically, what purpose does it serve?


More information about the Python-list mailing list