Re: [Cython] Refcount error with fused types in classes

2013-03-17 Thread Pauli Virtanen
17.03.2013 19:18, Pauli Virtanen kirjoitti: > Hi, > > 17.03.2013 18:51, mark florisson kirjoitti: > [clip] >> Thanks, I pushed a fix here: https://github.com/markflorisson88/cython >> (fd4853d202b13a92). > > Thanks. You beat me to this, I just arrived at the same fix :) Note that the Py_XDECREF(

Re: [Cython] Refcount error with fused types in classes

2013-03-17 Thread Pauli Virtanen
Hi, 17.03.2013 18:51, mark florisson kirjoitti: [clip] > Thanks, I pushed a fix here: https://github.com/markflorisson88/cython > (fd4853d202b13a92). Thanks. You beat me to this, I just arrived at the same fix :) Cheers, Pauli ___ cython-devel mailin

Re: [Cython] Refcount error with fused types in classes

2013-03-17 Thread mark florisson
On 17 March 2013 16:15, Pauli Virtanen wrote: > Hi, > > Here's a snippet demonstrating a refcount error with fused types inside > classes: > > -8<- > cimport cython > > ctypedef fused some_t: > int > double > > class Foo(object): > def bar(self, some_t x): > pas

[Cython] Refcount error with fused types in classes

2013-03-17 Thread Pauli Virtanen
Hi, Here's a snippet demonstrating a refcount error with fused types inside classes: -8<- cimport cython ctypedef fused some_t: int double class Foo(object): def bar(self, some_t x): pass cdef extern from "Python.h": int Py_REFCNT(object) def main():