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 troyhirni
Recipients Drekin, abarry, eryksun, tim.golden, troyhirni, vstinner
Date 2015-12-09.03:19:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449631179.89.0.545645136951.issue18597@psf.upfronthosting.co.za>
In-reply-to
Content
I'm also experiencing this on Windows 8 and 10. In the bare example below, I can Ctrl-C to exit the loop. When I press Enter again, the exception at the bottom appears.

try:
  while True:
    input("? ")
except:
  pass




>>>
>>> try:
...     while True:
...             input("? ")
... except:
...     pass
...
? asdf
'asdf'
? qqwer
'qqwer'
? >>>
  File "<stdin>", line 0

    ^
SyntaxError: decoding with 'cp437' codec failed (KeyboardInterrupt: )
>>>
History
Date User Action Args
2015-12-09 03:19:39troyhirnisetrecipients: + troyhirni, vstinner, tim.golden, eryksun, Drekin, abarry
2015-12-09 03:19:39troyhirnisetmessageid: <1449631179.89.0.545645136951.issue18597@psf.upfronthosting.co.za>
2015-12-09 03:19:39troyhirnilinkissue18597 messages
2015-12-09 03:19:38troyhirnicreate