Forgetting "()" when calling methods

Alex Martelli aleax at
Sat Apr 26 12:23:54 CEST 2003

Brian Quinlan wrote:

> Erik Max Francis wrote:
>> One thing that PyChecker, at least, is more likely to catch is "code
> has
>> no effect" statements like
>> sys.exit
> How do you know that the code has no effect?

You cannot KNOW, but, this is tricky, unreadable code -- I'd be quite
happy to have PyChecker optionally warn me against it, should I ever
happen to code this way.


More information about the Python-list mailing list