"Andrea D'Amore" <[email protected]> a écrit dans le message de news:[email protected]...
On 2014-09-24 13:30:55 +0000, ast said:

we have some methods associated with file f
[…]
f.close()
f.name

print(type(f.close))
print(type(f.name))

Spot the difference.

--
Andrea


f.name is an attribute and f.close a method !

How stupid am i

thx
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to