Message162286
Many paths in pythonrun.c contains these lines:
m = PyImport_AddModule("__main__");
d = PyModule_GetDict(m);
both return borrowed references, from sys.modules.
in most cases, d is simply passed to PyEval_EvalCode() and not used afterwards, *except* in PyRun_SimpleFileExFlags which calls PyDict_DelItemString(d, "__file__"); this is where the crash occurs. |
|
Date |
User |
Action |
Args |
2012-06-04 20:06:59 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, alex, hynek |
2012-06-04 20:06:59 | amaury.forgeotdarc | set | messageid: <1338840419.83.0.686817911081.issue15001@psf.upfronthosting.co.za> |
2012-06-04 20:06:59 | amaury.forgeotdarc | link | issue15001 messages |
2012-06-04 20:06:59 | amaury.forgeotdarc | create | |
|