Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Yes, this is what I meant. The version should be exposed as a tuple (major, 
minor, patch) or as a special named tuple. I don't know what to do with other 
implementations. NCURSES_VERSION_MAJOR is not a part of standard. One solution 
-- set the version to (0, 0, 0) for unknown implementations. Or expose ncurses 
version as optional ncurses_version, and expose versions for other known 
implementations with different names.

A known bug is issue15037. We still don't skip tests depending on the ncurses 
version because there is no easy way to determine the ncurses version in Python.

----------

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

Reply via email to