Troy Hirni added the comment:

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: )
>>>

----------
nosy: +ebarry, troyhirni
versions: +Python 2.7 -Python 3.3, Python 3.4, Python 3.6

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

Reply via email to