Problem for bytes and unicode doc for functions returning new objects examples are PyUnicode_FromStringAndSize and PyBytes_FromStringAndSize they are missing the Return value: New reference. beneath them, I think. -Nick