does python have useless destructors?

Aahz aahz at pythoncraft.com
Thu Jun 10 22:56:57 CEST 2004


In article <-oadnfu_sdwTUFrdRVn-hw at powergate.ca>,
Peter Hansen  <peter at engcorp.com> wrote:
>Michael P. Soulier wrote:
>>
>> myfile = open("myfilepath", "w")
>> myfile.write(reallybigbuffer)
>> myfile.close()
>
>... immediately raises a warning flag in the mind of an
>experienced Python programmer.

Depends on the circumstance, I'd think.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha



More information about the Python-list mailing list