[pypy-issue] [issue1260] sys.exc_info not being set before entering a context manager's __exit__
Julian Berman
tracker at bugs.pypy.org
Wed Sep 12 01:38:48 CEST 2012
New submission from Julian Berman <Julian+PyPy at GrayVines.com>:
The following code raises a KeyboardInterrupt on CPython but a TypeError on PyPy
(1.9.0):
class Foo(object):
def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, traceback):
if exc_type == KeyboardInterrupt:
raise
with Foo():
raise KeyboardInterrupt()
----------
messages: 4747
nosy: Julian, pypy-issue
priority: bug
status: unread
title: sys.exc_info not being set before entering a context manager's __exit__
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1260>
________________________________________
More information about the pypy-issue
mailing list