Re: [Numpy-discussion] Infinite recursion in numpy called from swig generated code
by Travis Oliphant other posts by this author
Apr 18 2006 1:50PM messages near this date
[Numpy-discussion] Infinite recursion in numpy called from swig generated code
|
Re: [Numpy-discussion] Multiple inheritance from ndarray
Robert Lupton wrote:
> The latest version of swig (1.3.28 or 1.3.29) has broken my
> multiple-inheritance-from-C-and-numpy application; more specifically,
> it generates an infinite loop in numpy-land. I'm using numpy (0.9.6),
> and here's the offending code. Ideas anyone? I've pasted the crucial
> part of numpy.lib.UserArray onto the end of this message (how do I know?
> because you can replace the "from numpy.lib.UserArray" with this, and
> the problem persists).
This is a problem in the getattr code of UserArray. This is fixed in
SVN. But, you can just replace the getattr code in UserArray.py with
the following:
def __getattr__(self,attr):
if (attr == 'array'):
return object.__getattr__(self, attr)
return self.array.__getattribute__(attr)
Thanks for finding and reporting this.
-Travis
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Robert Lupton
Travis Oliphant
Robert Lupton
Travis Oliphant
Robert Lupton
Robert Lupton
Travis Oliphant
Stefan van der Walt
Charlie Moad
|