does python have useless destructors?

Aahz aahz at pythoncraft.com
Thu Jun 10 16:56:57 EDT 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