comparison Python/pythonrun.c @ 69707:5a983773c09a 3.2

Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0) ... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
author Victor Stinner <victor.stinner@haypocalc.com>
date Wed, 27 Apr 2011 00:20:27 +0200
parents 0b6f6514461e
children 2caf82aee7a4
comparison
equal deleted inserted replaced
69705:08996a664ed3 69707:5a983773c09a
620 return tstate; 620 return tstate;
621 621
622 handle_error: 622 handle_error:
623 /* Oops, it didn't work. Undo it all. */ 623 /* Oops, it didn't work. Undo it all. */
624 624
625 PyErr_Print(); 625 PyErr_PrintEx(0);
626 PyThreadState_Clear(tstate); 626 PyThreadState_Clear(tstate);
627 PyThreadState_Swap(save_tstate); 627 PyThreadState_Swap(save_tstate);
628 PyThreadState_Delete(tstate); 628 PyThreadState_Delete(tstate);
629 PyInterpreterState_Delete(interp); 629 PyInterpreterState_Delete(interp);
630 630