Skip to content

Conversation

@tsuraan
Copy link

@tsuraan tsuraan commented Dec 3, 2012

I'm not sure how correct this is, but it seems to work for the most part. Exception display seems to be a bit broken compared with the current code under 7.4:

GHC-7.4, MissingPy-0.10.5:

Prelude Python.Interpreter> pyRun_SimpleString("raise Exception('foo')")
Traceback (most recent call last):
File "", line 1, in
Exception: foo
*** Exception: <<MissingPy.Python.Types.PyException>>

GHC-7.6, this commit:

Prelude Python.Interpreter> pyRun_SimpleString("raise Exception('foo')")
Traceback (most recent call last):
File "", line 1, in
Exception: foo
*** Exception:

So somehow I messed up something to do with exceptions. No idea what, but it clearly impacts the Show instance of PyExceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant