Forgetting "()" when calling methods

Klaus Meyer km-news1 at onlinehome.de
Sat Apr 26 15:03:16 EDT 2003


On Sat, 26 Apr 2003 16:42:33 GMT, Alex Martelli <aleax at aleax.it> wrote:

> as you proceed to learn that "to call callables, you need to CALL them"

You misunderstand me (and the OP, i think). It's not a problem of 
understanding, it's a simple type error or a "false remember" (or a 
"Flüchtigkeitsfehler" in German, i don't know a translation).
Programmers sometimes make simple mistakes ;-)


from the OP:

if object.isGreen:
        do something...
 
PyChecker could (optional?) warn in such cases if isGreen is a function.

-- 
Gruß - regards Klaus :-)




More information about the Python-list mailing list