Re: [Cython] operator() bug in cython

2015-02-17 Thread Ulrich Dobramysl
On Fri Feb 13 2015 at 11:07:39 PM Greg Ewing wrote: > Ulrich Dobramysl wrote: > > > Thanks! I haven't figured out how to call heap allocated objects, as the > > code > > --- > > cdef OperatorTest *t = new OperatorTest() > > t() > > --- > &

Re: [Cython] operator() bug in cython

2015-02-13 Thread Ulrich Dobramysl
On Fri Feb 13 2015 at 2:23:45 PM Stefan Behnel wrote: > Ulrich Dobramysl schrieb am 11.02.2015 um 09:56: > > From what I've been able to work out, the problem seems to be that the > call > > to "t()" is treated as a NameNode in ExprNodes.py and not an > Attr

[Cython] operator() bug in cython

2015-02-11 Thread Ulrich Dobramysl
Dear all, I tried to declare an external c++ class that includes an operator() function in a pxd file. When I then call a class instance, cython generates faulty c++ code. It includes a call to "operator()()", and not a call to the instance object. Here is a minimum working example: call_operator