[New-bugs-announce] [issue17209] get_wch() doesn't handle KeyboardInterrupt

raymontag report at bugs.python.org
Fri Feb 15 13:34:24 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue17209>
_______________________________________


More information about the New-bugs-announce mailing list