Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recursive tuple unpacking is broken in 0.11 due to old-style temps #746

Closed
robertwb opened this issue Apr 26, 2009 · 1 comment
Closed

Comments

@robertwb
Copy link
Contributor

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

If the module is imported in python and func is called, I got a segmentation fault at the line "print d".

Migrated from http://trac.cython.org/ticket/298

@robertwb
Copy link
Contributor Author

scoder changed resolution to fixed
status from new to closed
commented

This was fixed in cython-unstable already, but here's Dag's quick fix for 0.11:

http://hg.cython.org/cython-devel/rev/4179f49ac82d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant