Cython + tuple unpacking

2009-04-23 Thread Hugues Salamin
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 distutils. If the

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

Re: Cython + tuple unpacking

2009-04-23 Thread Aahz
In article mailman.4434.1240496587.11746.python-l...@python.org, Hugues Salamin hugues.sala...@idiap.ch 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,

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 done