[Pyrex] Bug? SystemError: error return without exception set

Atsuo Ishimoto ishimoto at gembook.org
Wed Apr 21 10:10:34 CEST 2004


Hello,

On Thu, 01 Apr 2004 10:39:11 EST
"Gary Bishop" <gb at cs.unc.edu> wrote:

> I think I may have found a bug in pyrex 0.9 on WindowsXP. I'm writing a 
> __setitem__ handler for my extension class. When I run it, I get 
> "SystemError: error return without exception set".  Looking at the 
> generated C, I see that __pyx_r is apparently the return value and it 
> is not initialized. It gets set near the bottom of the C function like this:

I was bitten by same bug with you. Following Pyrex code occasionally
causes same exception.

  cdef class Foo:
      def __init__(self):
          return
  Foo()

I attached a patch to avoid exception. This patch works for me but I'm
not sure correct patch or not.

--------------------------
Atsuo Ishimoto
ishimoto at gembook.org
Homepage:http://www.gembook.jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyrex.patch
Type: application/octet-stream
Size: 414 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20040421/b23ccb5f/pyrex.obj


More information about the Pyrex mailing list