changeset: 75485:861a5f3e7453 user: Victor Stinner date: Thu Mar 08 02:08:48 2012 +0100 files: Misc/NEWS Modules/_cursesmodule.c description: Close #14223: curses.addch() is no more limited to the range 0-255 when the Python curses is not linked to libncursesw. It was a regression introduced in Python 3.3a1. diff -r b595e1ad5722 -r 861a5f3e7453 Misc/NEWS --- a/Misc/NEWS Wed Mar 07 18:52:52 2012 -0600 +++ b/Misc/NEWS Thu Mar 08 02:08:48 2012 +0100 @@ -22,6 +22,10 @@ Library ------- +- Issue #14223: curses.addch() is no more limited to the range 0-255 when the + Python curses is not linked to libncursesw. It was a regression introduced + in Python 3.3a1. + - Issue #14168: Check for presence of Element._attrs in minidom before accessing it. diff -r b595e1ad5722 -r 861a5f3e7453 Modules/_cursesmodule.c --- a/Modules/_cursesmodule.c Wed Mar 07 18:52:52 2012 -0600 +++ b/Modules/_cursesmodule.c Thu Mar 08 02:08:48 2012 +0100 @@ -340,7 +340,7 @@ #endif { *ch = (chtype)value; - if ((long)*ch != value || value < 0 || value> 255) { + if ((long)*ch != value) { PyErr_Format(PyExc_OverflowError, "byte doesn't fit in chtype"); return 0;

AltStyle によって変換されたページ (->オリジナル) /