I have to think further on most of your post, but for the last point: On Fri, May 29, 2015 at 02:13:16PM +0100, Oscar Benjamin wrote:
> Now run the same under pypy: > > $ pypy --version > Python 2.7.2 (1.8+dfsg-2, Feb 19 2012, 19:18:08) > [PyPy 1.8.0 with GCC 4.6.2] > > $ pypy gencm.py > Entering > End of program > > The __exit__ method was not called at all under pypy. Even if I don't > keep a reference to g outside of f the __exit__ method is not called > under this version of pypy (I don't have another to test with). I think that is a clear bug in pypy. -- Steve _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor