Re: [Cython] Bug(?): chained assignments and tuple unpacking

2013-04-10 Thread Robert Bradshaw
Thanks for the detailed report. This does look like a bug. On Wed, Apr 10, 2013 at 1:36 PM, Alok Singhal wrote: > Hi, > > The following code (also attached as a .pyx file) fails in the current > Cython : > > cdef class test: > pass > > def main(): > cdef test a, b, c, d > (a, b) = (c,

[Cython] Bug(?): chained assignments and tuple unpacking

2013-04-10 Thread Alok Singhal
Hi, The following code (also attached as a .pyx file) fails in the current Cython : cdef class test: pass def main(): cdef test a, b, c, d (a, b) = (c, d) = (None, None) When run, I get the following traceback: In [1]: import assign_test In [2]: assign_test.main() Traceback (most r

Re: [Cython] Shared Cython runtime

2013-04-10 Thread Nikita Nemkin
On Wed, 10 Apr 2013 12:57:48 +0600, Stefan Behnel wrote: Nikita Nemkin, 10.04.2013 08:44: Well, here is the workaround Cython can use: https://gist.github.com/nnemkin/5352088 (Warning: I haven't fully tested it yet). Interesting. Looks like that could help here, yes. Do you know if it also