strict python?
Brian Quinlan
brian at sweetapp.com
Fri Dec 7 01:16:21 EST 2001
Brian Sturk wrote:
> def call_func( self ):
> self.func <--- no parentheses
>
> It took me a little for me to figure it out in my real
> script. It'd be nice to have this stuff pointed out
> while parsing it. Is it possible?
PyChecker might catch errors like this, but Python can't consider this
an error. There might be a side-effect of attribute lookup that you are
trying to trigger. Pascal does not consider expressions statements and
it is very annoying.
Cheers,
Brian
More information about the Python-list
mailing list