STINNER Victor added the comment: Do you consider this behaviour as a bug? What is the behaviour in C? Le 21 oct. 2012 03:25, "Julian Berman" <rep...@bugs.python.org> a écrit :
> > 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 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