help with print function in extension

Eric Hagemann ehagemann at comcast.net
Wed Sep 25 05:38:45 EDT 2002


Its my understanding that str() should return a PyObject * to a string


"Greg Ewing" <see_reply_address at something.invalid> wrote in message
news:3D912DC3.7010302 at something.invalid...
> 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