Skip to content

Instantly share code, notes, and snippets.

@admalledd
Created October 15, 2013 06:11
Show Gist options
  • Save admalledd/6987242 to your computer and use it in GitHub Desktop.
Save admalledd/6987242 to your computer and use it in GitHub Desktop.
pypy3 traceback issue
import traceback
try:
raise Exception("fail")
except Exception as e:
traceback.print_tb(e)
@pjenvey
Copy link

pjenvey commented Oct 15, 2013

There's no bug here -- print_tb takes an actual traceback, not an exception. E.g. traceback.print_tb(e.traceback)

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