Skip to content

Create oqpy.Range to allow ForIn ranges with expressions. #47

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

Merged
merged 2 commits into from
Jun 19, 2023

Conversation

PhilReinhold
Copy link
Collaborator

@PhilReinhold PhilReinhold commented Jun 19, 2023

Right now it is not possible to create a ForIn expression with a RangeDefinition which has a general expression as part of its start/stop/step fields, because this code path is forced to go through the builtin range function which only takes integers.

This creates an oqpy.Range class which can accept general arguments for start/stop/step.

Copy link
Collaborator

@jcjaskula-aws jcjaskula-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PhilReinhold PhilReinhold merged commit 046266a into main Jun 19, 2023
@jcjaskula-aws jcjaskula-aws deleted the pcrein/for-in-range-var branch June 17, 2024 15:56
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 this pull request may close these issues.

2 participants