Anonymous file closing

Sergey Krushinsky koshkindom at tochka.ru
Fri Jun 11 18:44:59 EDT 2004


Peter Hansen wrote:

>
> What's an "anonymous file"?  The term means nothing to me...

The file object created in: ... text = open(filename, 'r').read() ... 
has no name, and cannot be accessed elsewhere. In ...f = open(... the 
situation is different. It's like in two phrases: 'I was told that...' 
and 'Peter told me that...".

Sergey




More information about the Python-list mailing list