Re: Cython + tuple unpacking

2009-04-23 Thread Stefan Behnel
Hugues Salamin wrote: > The following code will crash with a segfault when compiled using cython > (v0.11) > > def func(): > for (a, b) ,c ,d in zip(zip(range(3), range(3)), range(3), range(3)): > print a, b > print c > print d # This line segfault > > Compilation is

Re: Cython + tuple unpacking

2009-04-23 Thread Aahz
In article , Hugues Salamin wrote: > >The following code will crash with a segfault when compiled using >cython (v0.11) > >def func(): >for (a, b) ,c ,d in zip(zip(range(3), range(3)), range(3), range(3)): >print a, b >print c >print d # This line segfault Does this c

Re: Cython + tuple unpacking

2009-04-23 Thread Terry Reedy
Hugues Salamin wrote: Hello, The following code will crash with a segfault when compiled using cython (v0.11) def func(): for (a, b) ,c ,d in zip(zip(range(3), range(3)), range(3), range(3)): print a, b print c print d # This line segfault Compilation is done using