[issue42681] mistake in curses documentation

Serhiy Storchaka report at bugs.python.org
Sat Dec 19 16:09:18 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Good catch! And it is not only documentation issue now. Since color numbers and pair numbers use different range checks, this prevents using this function with pair numbers larger that COLORS (should be accepted up to COLOR_PAIRS-1).

Seems there is also other bug which prevents using pair number 0 (constant white on black).

----------
assignee: docs at python -> serhiy.storchaka
components: +Library (Lib)
versions: +Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42681>
_______________________________________


More information about the Python-bugs-list mailing list