logo       

Re: Bug? SystemError: error return without exception set: msg#00045

python.pyrex

Subject: Re: Bug? SystemError: error return without exception set

Hello,

On Thu, 01 Apr 2004 10:39:11 EST
"Gary Bishop" <gb@xxxxxxxxxx> 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@xxxxxxxxxxx
Homepage:http://www.gembook.jp

Attachment: pyrex.patch
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise