[issue26679] curses: Descripton of KEY_NPAGE and KEY_PPAGE inverted
New submission from Robert Bachmann: The table on <https://docs.python.org/3/library/curses.html> lists: __________________________ Page Up KEY_NPAGE Page Down KEY_PPAGE __________________________ it should be vice versa. ---------- assignee: docs@python components: Documentation files: curses.patch keywords: patch messages: 262701 nosy: Robert Bachmann, docs@python priority: normal severity: normal status: open title: curses: Descripton of KEY_NPAGE and KEY_PPAGE inverted type: enhancement versions: Python 2.7, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file42334/curses.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue26679> _______________________________________
SilentGhost added the comment: Here is the patch. ---------- nosy: +SilentGhost stage: -> patch review type: enhancement -> behavior Added file: http://bugs.python.org/file42344/issue26679.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue26679> _______________________________________
Roundup Robot added the comment: New changeset f41d3321007f by Berker Peksag in branch '3.5': Issue #26679: Fix description of KEY_PPAGE and KEY_NPAGE constants https://hg.python.org/cpython/rev/f41d3321007f New changeset 23d986228c6b by Berker Peksag in branch 'default': Issue #26679: Fix description of KEY_PPAGE and KEY_NPAGE constants https://hg.python.org/cpython/rev/23d986228c6b ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue26679> _______________________________________
Berker Peksag added the comment: Thanks, Robert and SilentGhost. I verified the patch with the following script: import curses def main(stdscr): while True: c = stdscr.getch() if c == curses.KEY_PPAGE: stdscr.addstr('Page Up') elif c == curses.KEY_NPAGE: stdscr.addstr('Page Down') else: stdscr.addstr('Another key') curses.wrapper(main) ---------- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue26679> _______________________________________
participants (4)
-
Berker Peksag
-
Robert Bachmann
-
Roundup Robot
-
SilentGhost