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

Can't iterate over an enum, map or zip in a functional for #1297

Open
EmilyBourne opened this issue Jan 8, 2023 · 1 comment · May be fixed by #1412
Open

Can't iterate over an enum, map or zip in a functional for #1297

EmilyBourne opened this issue Jan 8, 2023 · 1 comment · May be fixed by #1412
Assignees

Comments

@EmilyBourne
Copy link
Member

Describe the bug

Can't iterate over an enum, map or zip in a functional for

To Reproduce

Provide code to reproduce the behavior:

@types('int[:]')
def functional_for_1d_enum(y):
    a = [i*yi for i,yi in enumerate(y)]
    return len(a), a[0], a[1], a[2], a[3]

Error details

Provide the generated code, or the error message:

RuntimeError: (i, yi) does not exist in scope
@EmilyBourne
Copy link
Member Author

Duplicate of #1399

@EmilyBourne EmilyBourne marked this as a duplicate of #1399 May 24, 2023
@smhah smhah linked a pull request Jun 1, 2023 that will close this issue
@smhah smhah linked a pull request Jun 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants