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

[BUG] Segmentation fault with binding=False and nested generator function #6556

Open
user202729 opened this issue Dec 9, 2024 · 0 comments · May be fixed by #6558
Open

[BUG] Segmentation fault with binding=False and nested generator function #6556

user202729 opened this issue Dec 9, 2024 · 0 comments · May be fixed by #6558

Comments

@user202729
Copy link

Describe the bug

# cython: binding=False

def f(h):
    def g(l):
        if isinstance(l, list):
            for x in l:
                yield from g(x)
        else:
            yield l
    return [x for x in g(h)]

print(f([1,[2, 3]]))

Code to reproduce the behaviour:

No response

Expected behaviour

No response

OS

Linux

Python version

3.11

Cython version

latest

Additional context

No response

da-woods added a commit to da-woods/cython that referenced this issue Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant