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

Refactor DynamicSchedule to be generators. #403

Closed
xcharleslin opened this issue Dec 27, 2022 · 1 comment
Closed

Refactor DynamicSchedule to be generators. #403

xcharleslin opened this issue Dec 27, 2022 · 1 comment
Assignees

Comments

@xcharleslin
Copy link
Contributor

Currently, DynamicSchedule manually implements the iterator interface with a class that holds state and a next method that raises StopIteration or returns a result.

It will be cleaner if this is expressed using Python's generator functions, which both hold state and implement the iterator interface for you.

@xcharleslin xcharleslin self-assigned this Dec 27, 2022
@xcharleslin
Copy link
Contributor Author

Closed by #434 .

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