Why no open(f, "w").write()?
Grant Edwards
grante at visi.com
Thu May 30 10:55:12 EDT 2002
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.
--
Grant Edwards grante Yow! I'm also pre-POURED
at pre-MEDITATED and
visi.com pre-RAPHAELITE!!
More information about the Python-list
mailing list