[Python-Dev] Product iteration
Moshe Zadka
Moshe Zadka <moshez@math.huji.ac.il>
Wed, 26 Jul 2000 15:21:00 +0300 (IDT)
On Wed, 26 Jul 2000, Guido van Rossum wrote:
> > I think I'd rather have this solved by weak references then by building
> > cycles. Cycles are evil even in the face of GC -- you have undetermined
> > finalization.
>
> But in this case, there aren't any custom finalizers involved in the
> cycle (although there may be some *hanging off* the cycle).
Yes, but those finalizers hanging off the cycle would occur in some random
time in the future, not right now, hence rendering the
def f():
fp = open("fff")
pass
idiom dangerous, since you're not sure how long fp will remain open.
--
Moshe Zadka <moshez@math.huji.ac.il>
There is no IGLU cabal.
http://advogato.org/person/moshez