mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
* pythonrun.c: Print exception type+arg *after* stack trace instead of
before it. * ceval.c, object.c: moved testbool() to object.c (now extern visible) * stringobject.c: fix bugs in and rationalize string resize in formatstring() * tokenizer.[ch]: fix non-working code for lines longer than BUFSIZ
This commit is contained in:
parent
ad4fcd49fc
commit
6ac258d381
7 changed files with 95 additions and 81 deletions
|
@ -245,6 +245,7 @@ print_error()
|
|||
if (f == NULL)
|
||||
fprintf(stderr, "lost sys.stderr\n");
|
||||
else {
|
||||
printtraceback(f);
|
||||
if (writeobject(exception, f, PRINT_RAW) != 0)
|
||||
err_clear();
|
||||
if (v != NULL && v != None) {
|
||||
|
@ -253,7 +254,6 @@ print_error()
|
|||
err_clear();
|
||||
}
|
||||
writestring("\n", f);
|
||||
printtraceback(f);
|
||||
}
|
||||
XDECREF(exception);
|
||||
XDECREF(v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue