Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to