STINNER Victor <[email protected]> added the comment:
The Python 2.7 backport (commit b694770a2b23cd485c98bf673a8b2dc1a865d9df) is
wrong. The _curses module cannot be compiled anymore:
Example of compilation errors:
/home/haypo/prog/python/2.7/Modules/_cursesmodule.c: In function
'PyCursesWindow_Box':
/home/haypo/prog/python/2.7/Modules/_cursesmodule.c:649:39: warning: passing
argument 1 of 'PyCurses_ConvertToChtype' from incompatible pointer type
[-Wincompatible-pointer-types]
if (!PyCurses_ConvertToChtype(self, temp1, &ch1)) {
^~~~
/home/haypo/prog/python/2.7/Modules/_cursesmodule.c:195:1: note: expected
'PyObject * {aka struct _object *}' but argument is of type
'PyCursesWindowObject * {aka struct <anonymous> *}'
PyCurses_ConvertToChtype(PyObject *obj, chtype *ch)
^~~~~~~~~~~~~~~~~~~~~~~~
/home/haypo/prog/python/2.7/Modules/_cursesmodule.c:649:45: warning: passing
argument 2 of 'PyCurses_ConvertToChtype' from incompatible pointer type
[-Wincompatible-pointer-types]
if (!PyCurses_ConvertToChtype(self, temp1, &ch1)) {
^~~~~
/home/haypo/prog/python/2.7/Modules/_cursesmodule.c:195:1: note: expected
'chtype * {aka unsigned int *}' but argument is of type 'PyObject * {aka struct
_object *}'
PyCurses_ConvertToChtype(PyObject *obj, chtype *ch)
^~~~~~~~~~~~~~~~~~~~~~~~
/home/haypo/prog/python/2.7/Modules/_cursesmodule.c:649:14: error: too many
arguments to function 'PyCurses_ConvertToChtype'
if (!PyCurses_ConvertToChtype(self, temp1, &ch1)) {
^~~~~~~~~~~~~~~~~~~~~~~~
/home/haypo/prog/python/2.7/Modules/_cursesmodule.c:195:1: note: declared here
PyCurses_ConvertToChtype(PyObject *obj, chtype *ch)
^~~~~~~~~~~~~~~~~~~~~~~~
----------
nosy: +haypo
resolution: fixed ->
status: closed -> open
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue27666>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com