help with print function in extension

Greg Ewing see_reply_address at something.invalid
Tue Sep 24 23:30:11 EDT 2002


Eric Hagemann wrote:

> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> SystemError: error return without exception set


Check what your C function implementing str() is
returning. My guess is that you've forgotten a
"return 0" statement, and it's returning some junk
value that in some cases the Python interpreter
thinks is signalling an error.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list