Renato Cunha <renatoc <at> gmail.com> writes: > > + if (!join) > + join = PyString_FromString("|"); [...] > Py_XDECREF(join); You must remove this Py_XDECREF() now that `join` is static and meant to retain its value. Regards Antoine.