Message165585
Reporting an error early in the python startup, before importing is properly initialized, can be tricky.
For example, here:
if (PyImport_ImportFrozenModule("_frozen_importlib") <= 0) {
Py_FatalError("Py_Initialize: can't import _frozen_importlib");
The problem is, that _Py_DisplaySourceLine will set an exception because it cannot import the io module. And this will terminate the traceback output.
The attached patch aims to rectify it by ignoring errors from this api in traceback.c |
|
Date |
User |
Action |
Args |
2012-07-16 10:28:15 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
2012-07-16 10:28:15 | kristjan.jonsson | set | messageid: <1342434495.02.0.347473954517.issue15365@psf.upfronthosting.co.za> |
2012-07-16 10:28:14 | kristjan.jonsson | link | issue15365 messages |
2012-07-16 10:28:13 | kristjan.jonsson | create | |
|