Message303654
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. |
|
| Date |
User |
Action |
Args |
| 2017-10-03 21:54:35 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, twouters, vstinner |
| 2017-10-03 21:54:35 | serhiy.storchaka | set | messageid: <[email protected]> |
| 2017-10-03 21:54:35 | serhiy.storchaka | link | issue31680 messages |
| 2017-10-03 21:54:35 | serhiy.storchaka | create | |
|