homepage

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 vstinner
Recipients vstinner
Date 2010年03月05日.12:50:16
SpamBayes Score 7.645481e-06
Marked as misclassified No
Message-id <1267793425.09.0.566406511799.issue8070@psf.upfronthosting.co.za>
In-reply-to
Content
PyRun_InteractiveLoopFlags() only stops if PyRun_InteractiveOneFlags() returns E_EOF. But PyRun_InteractiveOneFlags() if an error occurs:
 - sys.stdin has no encoding attribute
 - PyArena_New() returns NULL
 - PyParser_ASTFromFile() returns NULL
 - PyImport_AddModule("__main__") returns NULL
 - run_mod() returns NULL
You can reproduce the error by adding the followg line to the end of Lib/site.py:
 sys.stdin = object()
Attached patch is for py3k, but the bug does also exist in trunk.
History
Date User Action Args
2010年03月05日 12:50:25vstinnersetrecipients: + vstinner
2010年03月05日 12:50:25vstinnersetmessageid: <1267793425.09.0.566406511799.issue8070@psf.upfronthosting.co.za>
2010年03月05日 12:50:17vstinnerlinkissue8070 messages
2010年03月05日 12:50:16vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /