This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients alex, amaury.forgeotdarc, hynek
Date 2012-06-04.20:06:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338840419.83.0.686817911081.issue15001@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-06-04 20:06:59amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, alex, hynek
2012-06-04 20:06:59amaury.forgeotdarcsetmessageid: <1338840419.83.0.686817911081.issue15001@psf.upfronthosting.co.za>
2012-06-04 20:06:59amaury.forgeotdarclinkissue15001 messages
2012-06-04 20:06:59amaury.forgeotdarccreate