Cython + tuple unpacking

Aahz aahz at pythoncraft.com
Thu Apr 23 21:56:53 CEST 2009


In article <mailman.4434.1240496587.11746.python-list at python.org>,
Hugues Salamin  <hugues.salamin at 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, b
>        print c
>        print d # This line segfault

Does this crash if you unpack the a,b tuple inside the loop?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair



More information about the Python-list mailing list