python / cpython

The Python programming language
https://www.python.org
Other
62.14k stars 29.86k forks source link

Expose NCURSES_EXT_FUNCS under curses #84388

Open isidentical opened 4 years ago

isidentical commented 4 years ago
BPO 40207
Nosy @Yhg1s, @isidentical
PRs
  • python/cpython#19392
  • 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: ```python assignee = None closed_at = None created_at = labels = ['library', '3.9'] title = 'Expose NCURSES_EXT_FUNCS under curses' updated_at = user = 'https://github.com/isidentical' ``` bugs.python.org fields: ```python activity = actor = 'terry.reedy' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'BTaskaya' dependencies = [] files = [] hgrepos = [] issue_num = 40207 keywords = ['patch'] message_count = 1.0 messages = ['365866'] nosy_count = 2.0 nosy_names = ['twouters', 'BTaskaya'] pr_nums = ['19392'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = None url = 'https://bugs.python.org/issue40207' versions = ['Python 3.9'] ```

    isidentical commented 4 years ago

    NCURSES_EXT_FUNCS defines the extension version number which is needed to determine if certain functions exist or not.

    serhiy-storchaka commented 9 months ago

    Unless ncurses is configured with --disable-ext-funcs, it sets NCURSES_EXT_FUNCS to the same value as curses.ncurses_version.patch. Also, in Python we can use hasattr() to test whether extension functions are available. Do we still need curses.NCURSES_EXT_FUNCS?