[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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29170>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29170>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

If this test is changed, then it will help support NetBSD curses as well.

--
components: Extension Modules
messages: 284771
nosy: Roy Marples
priority: normal
severity: normal
status: open
title: Curses Module should check for is_keypad and not window flags
type: compile error
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29170>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com