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 mdf
Recipients mdf, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015年10月11日.12:32:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444566744.92.0.693006452936.issue25376@psf.upfronthosting.co.za>
In-reply-to
Content
Pressing Ctrl+C to raise a KeyboardInterrupt while waiting for user input in an input() call yields an incomplete traceback.
The behaviour appears in a Python REPL session started by issuing "python" without quotes in a Windows cmd session:
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> input("Question: ")
Question: Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
>>>
When executing input_test.py (a single line Python source code file containing just an input("Question: ") call) from the cmd prompt by issuing "python input_test.py" without quotes, every other time the traceback is incomplete and every other time the Ctrl+C keypress yields, erroneously, an EOFError instead of a KeyboardInterrupt:
C:\x>python input_test.py
Question: Traceback (most recent call last):
 File "input_test.py", line 1, in <module>
 input("Question: ")
EOFError
^C
C:\x>python input_test.py
Question: Traceback (most recent call last):
 File "input_test.py", line 1, in <module>
C:\x>
History
Date User Action Args
2015年10月11日 12:32:24mdfsetrecipients: + mdf, paul.moore, tim.golden, zach.ware, steve.dower
2015年10月11日 12:32:24mdfsetmessageid: <1444566744.92.0.693006452936.issue25376@psf.upfronthosting.co.za>
2015年10月11日 12:32:24mdflinkissue25376 messages
2015年10月11日 12:32:24mdfcreate

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