New submission from Julian Berman: The following code now raises an OverflowError on 3.3:
import curses def test_screen(screen): screen.nodelay(True) key = screen.getch() screen.nodelay(False) curses.ungetch(key) curses.wrapper(test_screen) or equivalently just def test_screen(screen): curses.ungetch(-1) ---------- components: Library (Lib) messages: 173425 nosy: Julian, haypo priority: normal severity: normal status: open title: curses.ungetch raises OverflowError when given -1 versions: Python 3.3, Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16293> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com