In a message of Fri, 29 May 2015 14:13:16 +0100, Oscar Benjamin writes: >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). > > >-- >Oscar
I do. Same behaviour for PyPy 2.4 and PyPy 2.5.1 . The __exit __ method isn't called. Laura _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor