[pypy-dev] __exit__ not called in certain cases
Benjamin Peterson
benjamin at python.org
Thu Apr 12 05:33:08 CEST 2012
2012/4/11 Hong Minhee <minhee at dahlia.kr>:
> I reported https://bugs.pypy.org/issue1126 which shows that __exit__
> is not called in certain cases when I think it should be. The code to
> reproduce the bug is there. The code works on CPython.
>
> It was closed as invalid saying this is a GC issue, but I don't think
> it is. This is about __exit__, not __del__. __exit__ should be
> always called if __enter__ succeeds.
It is about GC, because the GC is responsible for calling __exit__ here.
--
Regards,
Benjamin
More information about the pypy-dev
mailing list