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

Slicing with dynamic parameters seems to be broken. #233

Closed
ghost opened this issue Jan 8, 2016 · 1 comment
Closed

Slicing with dynamic parameters seems to be broken. #233

ghost opened this issue Jan 8, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 8, 2016

As in, this will parse:

slice = [ item for item in *items[start, finish] ]

But this will not:

slice = [ item for item in *items[start + 1, finish - 1] ]
-- Failed to parse:
-- [5] >>    slice = [ item for item in *items[start + 1, finish - 1] ]

Not even with parentheses either.

@leafo
Copy link
Owner

leafo commented Jan 25, 2016

It's indeed a bug, you can wrap the slice boundaries in parentheses for a temporary fix.

@leafo leafo closed this as completed in 2e7d515 Sep 26, 2016
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

No branches or pull requests

1 participant