Why no open(f, "w").write()?
Kragen Sitaker
kragen at pobox.com
Sun Jun 2 22:38:03 EDT 2002
Paul Foley <see at below> writes:
> GC is just an optimization to allow reuse of
> memory used by objects that the program will never access again,
> because you don't really have infinite memory.
>
> Correct optimizations don't change the behaviour of correct code.
>
> [Therefore, if the behaviour of your code does change depending on
> whether or not the optimization is done, either the optimization is
> in error or your code is.
So all finalizers should be considered bugs? I think that's a
supremely unpragmatic approach to programming.
More information about the Python-list
mailing list