Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 69586:c8338cfa3578
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 | 6e9dc970ac0e |
| children | d3af2a2b621b |
comparison
equal
deleted
inserted
replaced
| 69585:79fcd71d0356 | 69586:c8338cfa3578 |
|---|---|
| 630 return tstate; | 630 return tstate; |
| 631 | 631 |
| 632 handle_error: | 632 handle_error: |
| 633 /* Oops, it didn't work. Undo it all. */ | 633 /* Oops, it didn't work. Undo it all. */ |
| 634 | 634 |
| 635 PyErr_Print(); | 635 PyErr_PrintEx(0); |
| 636 PyThreadState_Clear(tstate); | 636 PyThreadState_Clear(tstate); |
| 637 PyThreadState_Swap(save_tstate); | 637 PyThreadState_Swap(save_tstate); |
| 638 PyThreadState_Delete(tstate); | 638 PyThreadState_Delete(tstate); |
| 639 PyInterpreterState_Delete(interp); | 639 PyInterpreterState_Delete(interp); |
| 640 | 640 |
