brackets at the end of a method name
nomail at invalid.com
Wed Sep 24 15:30:55 CEST 2014
Once a file is opened with:
we have some methods associated with file f
I dont understand why sometimes there are brackets () at the end
of the method name (ie close())and sometimes no (ie name)
I thought that maybe methods with () could have a parameter passed to,
for example f.close(parameter) but it is not the case.
This is documentation about close(), there is no parameter.
Close the current file and forget everything we know about it (including
the filename and the current line number).
More information about the Python-list