does python have useless destructors?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Tue Jun 15 10:28:35 EDT 2004


On Tue, 15 Jun 2004 14:19:09 +0000, Michael P. Soulier wrote:

> 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. 

It doesn't depend on the OS but on the language or compiler. Borland
Pascal didn't flush files when the process exited, the OS could do nothing
about it because the data was in process' internal buffers.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/




More information about the Python-list mailing list