Anonymous file closing

Sergey Krushinsky koshkindom at tochka.ru
Sat Jun 12 00:44:59 CEST 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