mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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.
This commit is contained in:
parent
9a6338651e
commit
8f40860944
2 changed files with 5 additions and 1 deletions
|
|
@ -22,6 +22,10 @@ Core and Builtins
|
|||
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ PyCurses_ConvertToCchar_t(PyCursesWindowObject *win, PyObject *obj,
|
|||
#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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue