diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index 91e72df3ee8962..4fe2d5b1e1cb9a 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -1329,7 +1329,7 @@ The :mod:`curses` module defines the following data members: An integer representing the current version of the ncurses extensions. - .. versionadded:: 3.13 + .. versionadded:: next .. data:: version diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index e683f7bbeb3c31..dd33e88329c2b7 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -5071,9 +5071,6 @@ cursesmodule_exec(PyObject *module) return -1; } #endif /* NCURSES_VERSION */ -#ifdef NCURSES_EXT_FUNCS - SetDictInt("NCURSES_EXT_FUNCS", NCURSES_EXT_FUNCS); -#endif #define SetDictInt(NAME, VALUE) \ do { \ @@ -5222,6 +5219,10 @@ cursesmodule_exec(PyObject *module) } SetDictInt("KEY_MIN", KEY_MIN); SetDictInt("KEY_MAX", KEY_MAX); + +#ifdef NCURSES_EXT_FUNCS + SetDictInt("NCURSES_EXT_FUNCS", NCURSES_EXT_FUNCS); +#endif #undef SetDictInt return 0; }