diff options
author | Guido van Rossum <guido@python.org> | 1991-06-07 16:10:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-06-07 16:10:43 (GMT) |
commit | 909336104b70cae29c0c4fde4477d508e1d709ac (patch) | |
tree | 565a1a5a3aea78eeca3216ab2d95bc74b73286a1 /Python/ceval.c | |
parent | dd0108081b1a4b44d712477308b9764139ebc6a2 (diff) | |
download | cpython-909336104b70cae29c0c4fde4477d508e1d709ac.zip cpython-909336104b70cae29c0c4fde4477d508e1d709ac.tar.gz cpython-909336104b70cae29c0c4fde4477d508e1d709ac.tar.bz2 |
printobject now returns an error code
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index e24866c..975b788 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -428,7 +428,7 @@ eval_code(co, globals, locals, arg) if (v != None) { flushline(); softspace(sysget("stdout"), 1); - printobject(v, fp, 0); + err = printobject(v, fp, 0); flushline(); } DECREF(v); @@ -447,7 +447,7 @@ eval_code(co, globals, locals, arg) softspace(sysget("stdout"), 0); } else { - printobject(v, fp, 0); + err = printobject(v, fp, 0); } DECREF(v); break; @@ -933,7 +933,8 @@ prtrace(v, str) char *str; { printf("%s ", str); - printobject(v, stdout, 0); + if (printobject(v, stdout, 0) != 0) + err_clear(); /* Don't know what else to do */ printf("\n"); } #endif |