[issue25708] runpy hides traceback for some exceptions

2015-11-30 Thread Martin Panter
Martin Panter added the comment: I think there are a couple of related bugs here, with open reports: 1. Issue 14285: runpy catches various exceptions including AttributeError, and incorrectly assumes this means you gave it a bad module or package name. 2. Issue 19771: runpy incorrectly interpr

[issue25708] runpy hides traceback for some exceptions

2015-11-23 Thread Cal Leeming
New submission from Cal Leeming: Originally posted here: http://stackoverflow.com/q/33873243/1267398 The problem is caused by this line: # For -m switch, just display the exception info = str(exc) Caused by the following commit in 2008; https://mail.python.org/pipermail/python-checkins