New submission from raymontag:

If I've initialized a window in curses, try to get a single character with 
get_wch() and press Ctrl+C, the program crashes even if I handle 
KeyboardInterrupt. Here's a code example.

import curses

scr = curses.initscr()
try:
    char = scr.get_wch()
except KeyboardInterrupt:
    pass

With getch() instead of get_wch() it works though.

----------
components: Library (Lib)
messages: 182137
nosy: raymontag
priority: normal
severity: normal
status: open
title: get_wch() doesn't handle KeyboardInterrupt
versions: Python 3.3

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

Reply via email to