does python have useless destructors?

Michael P. Soulier msoulier at digitaltorque.ca._nospam
Tue Jun 15 16:19:09 CEST 2004


On Sun, 13 Jun 2004 20:48:06 +0200, Martin v. Löwis <martin at v.loewis.de>
wrote:
> 
> That is not true: the data is not lost. The file is closed eventually
> (e.g. when Python exits), in which case the data is flushed to disk.

On Unix it is. I am unsure about recent versions of windows, but back
when I was coding pascal on Win95, I found out the hard way that if the
process exits without closing the descriptor, whatever is in the buffer
is lost. Welcome to windows. 

Mike

-- 
Michael P. Soulier <msoulier at digitaltorque.ca>
The major advances in civilization are processes that all but wreck the
societies in which they occur.
-- Albert North Whitehead



More information about the Python-list mailing list