[issue29170] Curses Module should check for is_keypad and not window flags

2017-01-05 Thread Roy Marples
Roy Marples added the comment: It is, sorry for noise. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue29170> ___ ___ Python-bugs-lis

[issue29170] Curses Module should check for is_keypad and not window flags

2017-01-05 Thread Roy Marples
Roy Marples added the comment: Remove WINDOW test Add is_keypad test Change #define in _cursesmodule.c -- keywords: +patch Added file: http://bugs.python.org/file46163/cursesmodule.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29170] Curses Module should check for is_keypad and not window flags

2017-01-05 Thread Roy Marples
New submission from Roy Marples: checking whether WINDOW has _flags... no The ncurses library can be built with an opaque window structure. As such, it's not always possible to query it's flags. Luckily there is the is_keypad function which works regardless of how ncurses was built