You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Curses Module should check for is_keypad and not window flags #73356
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-01-05.22:36:57.965>created_at=<Date2017-01-05.21:57:30.738>labels= ['extension-modules', 'build']
title='Curses Module should check for is_keypad and not window flags'updated_at=<Date2017-01-06.02:17:02.782>user='https://bugs.python.org/RoyMarples'
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.
If this test is changed, then it will help support NetBSD curses as well.
Activity
RoyMarples commentedon Jan 5, 2017
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.
If this test is changed, then it will help support NetBSD curses as well.
RoyMarples commentedon Jan 5, 2017
Remove WINDOW test
Add is_keypad test
Change #define in _cursesmodule.c
ma8ma commentedon Jan 5, 2017
bpo-25720 is a similar issue that is originated by opaque type WINDOW.
RoyMarples commentedon Jan 5, 2017
It is, sorry for noise.