Forgetting "()" when calling methods
Alex Martelli
aleax at aleax.it
Sat Apr 26 06:23:54 EDT 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.
Alex
More information about the Python-list
mailing list