[ python-Bugs-1219862 ] misdocumented argument range for curses.pair_content

SourceForge.net noreply at sourceforge.net
Tue Jun 14 16:48:23 CEST 2005


Bugs item #1219862, was opened at 2005-06-13 14:25
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1219862&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: dcrosta (dcrosta)
>Assigned to: A.M. Kuchling (akuchling)
Summary: misdocumented argument range for curses.pair_content

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2005-06-14 10:48

Message:
Logged In: YES 
user_id=11375

Fixed on both the HEAD and 2.4-maint branches.  Thanks for
reporting the error!


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1219862&group_id=5470


More information about the Python-bugs-list mailing list