This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Julian, vstinner
Date 2012-10-21.10:57:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwZT8W-6aAKUXbXFxP27SbwCLyq+ed6Owea=hpKYLE60kQ@mail.gmail.com>
In-reply-to <1350782737.16.0.822622780307.issue16293@psf.upfronthosting.co.za>
Content
Do you consider this behaviour as a bug? What is the behaviour in C?
Le 21 oct. 2012 03:25, "Julian Berman" <report@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 <report@bugs.python.org>
> <http://bugs.python.org/issue16293>
> _______________________________________
>
History
Date User Action Args
2012-10-21 10:57:03vstinnersetrecipients: + vstinner, Julian
2012-10-21 10:57:02vstinnerlinkissue16293 messages
2012-10-21 10:57:02vstinnercreate