Message305704
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)
^~~~~~~~~~~~~~~~~~~~~~~~ |
|
Date |
User |
Action |
Args |
2017-11-07 01:03:45 | vstinner | set | recipients:
+ vstinner, twouters, serhiy.storchaka, Steve Fink |
2017-11-07 01:03:45 | vstinner | set | messageid: <1510016625.08.0.213398074469.issue27666@psf.upfronthosting.co.za> |
2017-11-07 01:03:44 | vstinner | link | issue27666 messages |
2017-11-07 01:03:43 | vstinner | create | |
|