cpython: 39b9b05c3085 (original) (raw)

Mercurial > cpython

changeset 83229:39b9b05c3085

Close #14439: Python now prints the traceback on runpy failure at startup. [#14439]

Victor Stinner victor.stinner@gmail.com
date Wed, 10 Apr 2013 00:27:23 +0200
parents b3168643677b
children 1410b7790de6
files Misc/NEWS Modules/main.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-)[+] [-] Misc/NEWS 6 Modules/main.c 4

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,8 @@ What's New in Python 3.4.0 Alpha 1? Core and Builtins ----------------- +- Issue #14439: Python now prints the traceback on runpy failure at startup. +

--- a/Modules/main.c +++ b/Modules/main.c @@ -167,17 +167,20 @@ static int RunModule(wchar_t *modname, i runpy = PyImport_ImportModule("runpy"); if (runpy == NULL) { fprintf(stderr, "Could not import runpy module\n");

@@ -186,6 +189,7 @@ static int RunModule(wchar_t *modname, i if (runargs == NULL) { fprintf(stderr, "Could not create arguments for runpy._run_module_as_main\n");