Antoine Pitrou <pitrou at free.fr> added the comment: You should check the return value from PyObject_Str(). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue6108> _______________________________________