Re: [Cython] Bug: Extension Type inheriting from int cause a MemoryError

2015-06-18 Thread Stefan Behnel
Stephen LARROQUE schrieb am 15.06.2015 um 12:34: > I am trying to make an extension type inheriting from int or cython.int (to > do arithmetic operations in Galois Fields). However, this causes a > MemoryError because it seems such extension type is not freed correctly. > Other than that, it works

Re: [Cython] Bug: Extension Type inheriting from int cause a MemoryError

2015-06-15 Thread Stephen LARROQUE
Addendum: I tried to define __weakref__ and __dealloc__, but this did nothing to solve the issue. 2015-06-15 12:34 GMT+02:00 Stephen LARROQUE : > Hello, > > I am trying to make an extension type inheriting from int or cython.int (to > do arithmetic operations in Galois Fields). However, this caus

[Cython] Bug: Extension Type inheriting from int cause a MemoryError

2015-06-15 Thread Stephen LARROQUE
Hello, I am trying to make an extension type inheriting from int or cython.int (to do arithmetic operations in Galois Fields). However, this causes a MemoryError because it seems such extension type is not freed correctly. Other than that, it works perfectly well. Here is a test case to reproduce