This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: misdocumented argument range for curses.pair_content
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, dcrosta
Priority: normal Keywords:

Created on 2005-06-13 18:25 by dcrosta, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25538 - (view) Author: dcrosta (dcrosta) Date: 2005-06-13 18:25
The documentation for 2.3.5 and 2.4.1 say that the
curses module function pair_content take an argument
between 0 and COLOR_PAIRS - 1. The underlying curses
library function requires an argument between 1 and
COLOR_PAIRS -1, inclusive, and giving the value 0
raises a _curses.error (as it should) in python.
msg25539 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2005-06-14 14:48
Logged In: YES 
user_id=11375

Fixed on both the HEAD and 2.4-maint branches.  Thanks for
reporting the error!
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42080
2005-06-13 18:25:29dcrostacreate