Why no open(f, "w").write()?
Grant Edwards
grante at visi.com
Thu May 30 10:58:51 EDT 2002
In article <k3rJ8.88672$vm6.19407854 at ruti.visi.com>, Grant Edwards wrote:
> In article <7iadqi9wt2.fsf at enark.csis.hku.hk>, Isaac To wrote:
>>>>>>> "Grant" == Grant Edwards <grante at visi.com> writes:
>>
>> >> The question is: When does the file get closed?
>>
>> Grant> Sometime before the program exits.
>>
>> Wrong. Sometime when the garbage collector is executed, or never if the
>> garbage collector never choose to collect that.
>
> I know of no OS that doesn't close the file when the process
> terminates.
I suppose that doesn't guarantee that data buffered by the
Python implimentation gets flushed...
--
Grant Edwards grante Yow! I hope something GOOD
at came in the mail today so
visi.com I have a REASON to live!!
More information about the Python-list
mailing list