Python & Linux, some questions (2)

Luca T. lucat at despammed.com
Tue Mar 16 15:49:23 EST 2004


Peter Hansen wrote:

> Bug: you are referencing r.close and friends, but not actually calling 
> them.  Python is not VB (or Pascal, etc), so you *must* include the 
> parentheses to make a method call:
> 
> r.close()
> w.close()
> e.close()

Thank you

> PyChecker can warn about such things, and many others.

I'll search for it

Thanx again,
    Luca



More information about the Python-list mailing list