open() bug? or feature?

Adonis deltapigz at telocity.com
Mon Aug 5 17:27:23 EDT 2002


i did this:
>>> x = open('/tmp/test1.txt', 'w').write('hi!')
>>> x

the data is written, and the file is closed? is this a feature?

or a bug?

Adonis





More information about the Python-list mailing list