nickers / tinypy

Automatically exported from code.google.com/p/tinypy
Other
0 stars 0 forks source link

cpython errors are not reset #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In this test case, I'd expect the result to be "OK" .. Instead it just
repeats the previous exception.

>>> t = tinypy.Tinypy()
>>> t.execute("def x():x()\nx()")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
tinypy.error: (tp_frame) RuntimeError: stack overflow
>>> t.execute("print('OK')")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
tinypy.error: (tp_frame) RuntimeError: stack overflow

Original issue reported on code.google.com by philhas...@gmail.com on 17 Sep 2008 at 5:50

GoogleCodeExporter commented 8 years ago

Here the docs for PyErr_Clear(); can be found:
http://docs.python.org/api/exceptions.html#l2h-25
http://docs.python.org/api/exceptions.html#l2h-25
http://docs.python.org/api/exceptionHandling.html#l2h-96

Original comment by ren...@gmail.com on 23 Sep 2008 at 7:07

GoogleCodeExporter commented 8 years ago
Attached is as a cpython unittest.

Crashes on windows/mingw.  No time to debug further now.

Original comment by ren...@gmail.com on 23 Sep 2008 at 7:31

Attachments: