[issue16293] curses.ungetch raises OverflowError when given -1

Julian Berman report at bugs.python.org
Sun Oct 21 03:25:37 CEST 2012


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


More information about the Python-bugs-list mailing list