bug in PyPy3 context __exit__ handling
1 Jul
2018
1 Jul
'18
1:37 p.m.
Please see attached test. Returning True from __exit__ when type is None can break expected program flow. So far, I've found that each of break/continue/return inside a with block is affected. Both with and without '--jit off' PyPy2 is unaffected. Thanks! -Nate
1 Jul
1 Jul
8:52 p.m.
Hi Nathaniel,
On 1 July 2018 at 15:37, Nathaniel Pierce
Returning True from __exit__ when type is None can break expected program flow. So far, I've found that each of break/continue/return inside a with block is affected. Both with and without '--jit off'
PyPy2 is unaffected.
Thanks! This bug must have given very obscure behaviour. Thanks for identifying the cause. Fixed in 0a4016e8a6bc! A bientôt, Armin.
2125
Age (days ago)
2125
Last active (days ago)
1 comments
2 participants
participants (2)
-
Armin Rigo
-
Nathaniel Pierce