[pypy-issue] Issue #2288: OperationError with an error in a setprofile function at process exit (pypy/pypy)
David MacIver
issues-reply at bitbucket.org
Sun May 1 06:15:23 EDT 2016
New issue 2288: OperationError with an error in a setprofile function at process exit
https://bitbucket.org/pypy/pypy/issues/2288/operationerror-with-an-error-in-a
David MacIver:
If I run the following file:
```python
import sys
t = [0]
def ca(f, v, g):
if v == 'call':
t.pop()
def o():
raise ValueError()
sys.setprofile(ca)
o()
```
Gives the following output:
```
debug: OperationError:
debug: operror-type: IndexError
debug: operror-value: list index out of range
```
While it should probably (and CPython does) print a ValueError plus a stack trace.
More information about the pypy-issue
mailing list