https://sourceforge.net/tracker/?func=detail&aid=3464317&group_id=3180&atid=303180 --- Src/Python3/cxx_extensions.cxx +++ Src/Python3/cxx_extensions.cxx @@ -225,7 +225,11 @@ static PyObject *rich_compare_handler( PyObject *, PyObject *, int ); static PyObject *repr_handler( PyObject * ); static PyObject *str_handler( PyObject * ); +#if PY_VERSION_HEX >= 0x03020000 + static Py_hash_t hash_handler( PyObject * ); +#else static long hash_handler( PyObject * ); +#endif static PyObject *call_handler( PyObject *, PyObject *, PyObject * ); static PyObject *iter_handler( PyObject * ); static PyObject *iternext_handler( PyObject * ); @@ -714,7 +718,11 @@ } } +#if PY_VERSION_HEX >= 0x03020000 +extern "C" Py_hash_t hash_handler( PyObject *self ) +#else extern "C" long hash_handler( PyObject *self ) +#endif { try {