Hi, With this version of of t_jccenv_strhash I can build both JCC and wrap the library I'm using!
Regards /Petrus > > >> static PyObject *t_jccenv_strhash(PyObject *self, PyObject *arg) >> { >> unsigned long long hash = (unsigned long long) PyObject_Hash(arg); >> static const size_t hexdig = sizeof(hash) * 2; >> char buffer[hexdig + 1]; >> >> sprintf(buffer, "%0*llx", (int) hexdig, hash); >> return PyUnicode_FromStringAndSize(buffer, hexdig); >> } >> >> BTW this function should be also copied to the py2 directory where we >> still use int allthough PyObject_Hash returns already long on python >> >>> 2.x. >>> >> >> cu, >> Rudi >> >> >> -- _____________________________________________ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00