Re: [Cython] 'local variable referenced before assignment' warnings

2011-09-22 Thread Robert Bradshaw
On Thu, Sep 22, 2011 at 9:36 PM, Vitja Makarov wrote: > 2011/9/23 Robert Bradshaw : >> On Thu, Sep 22, 2011 at 5:08 AM, Vitja Makarov >> wrote: >>> 2011/9/22 Robert Bradshaw : On Wed, Sep 21, 2011 at 1:20 AM,   wrote: > Hi Robert, > > Robert Bradshaw wrote: >> >> The war

Re: [Cython] cython 0.15 breaks callback code.

2011-09-22 Thread Robert Bradshaw
On Wed, Sep 21, 2011 at 2:54 AM, Brett Calcott wrote: > Hi. I've just reverted to 0.14.1 because 0.15 breaks code that implements a > cpp callback in python. It seems to be a name-mangling problem. > I've attached a short test case that shows the problem. They both compile > fine on 14.1 and 15. B

Re: [Cython] 'local variable referenced before assignment' warnings

2011-09-22 Thread Vitja Makarov
2011/9/23 Robert Bradshaw : > On Thu, Sep 22, 2011 at 5:08 AM, Vitja Makarov > wrote: >> 2011/9/22 Robert Bradshaw : >>> On Wed, Sep 21, 2011 at 1:20 AM,   wrote: Hi Robert, Robert Bradshaw wrote: > > The warning seem correct to me, or is foo actually modifying the > va

Re: [Cython] 'local variable referenced before assignment' warnings

2011-09-22 Thread Robert Bradshaw
On Thu, Sep 22, 2011 at 5:08 AM, Vitja Makarov wrote: > 2011/9/22 Robert Bradshaw : >> On Wed, Sep 21, 2011 at 1:20 AM,   wrote: >>> Hi Robert, >>> >>> Robert Bradshaw wrote: The warning seem correct to me, or is foo actually modifying the values of cya and cyb? (I suppose this coul

Re: [Cython] 'local variable referenced before assignment' warnings

2011-09-22 Thread Vitja Makarov
2011/9/22 Robert Bradshaw : > On Wed, Sep 21, 2011 at 1:20 AM,   wrote: >> Hi Robert, >> >> Robert Bradshaw wrote: >>> >>> The warning seem correct to me, or is foo actually modifying the >>> values of cya and cyb? (I suppose this could be possible by taking the >>> address of the "passed by refere