open() bug? or feature?

Adonis deltapigz at telocity.com
Mon Aug 5 23:27:23 CEST 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