[New-bugs-announce] [issue14439] RunModule(): display the traceback on failure

STINNER Victor report at bugs.python.org
Thu Mar 29 13:41:04 CEST 2012

New submission from STINNER Victor <victor.stinner at gmail.com>:

"python -m module" calls the C RunModule() function. If this function fails, the traceback is not displayed and so it is difficult to understand why the problem is.

I propose to display the traceback when this function fails, as it is already done on runpy._run_module_as_main() failure.

components: Library (Lib)
files: runmodule.patch
keywords: patch
messages: 157034
nosy: haypo
priority: normal
severity: normal
status: open
title: RunModule(): display the traceback on failure
versions: Python 3.3
Added file: http://bugs.python.org/file25062/runmodule.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list