How to avoid "f.close" (no parens) bug?

Richie Hindle richie at entrian.com
Wed Feb 11 10:45:24 EST 2004


[Facundo]
> There is any case when f.close [...] has any effect?

class Test:
    def __getattr__(self, name):
        print "Nobody expects the %s!" % name

t = Test()
t.spanish_inquisition

-- 
Richie Hindle
richie at entrian.com





More information about the Python-list mailing list