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

Implement method for detecting an attempt to re-iterate over a generator #38

Open
pgoodman opened this issue Jan 29, 2023 · 1 comment
Labels
core enhancement New feature or request

Comments

@pgoodman
Copy link
Contributor

For example, in a debug build, set a flag that begin has been called, and then error on successive calls to begin.

@pgoodman pgoodman added enhancement New feature or request core labels Jan 29, 2023
@frabert
Copy link
Contributor

frabert commented Apr 6, 2023

Note that this is how the py-multiplier bindings uses generators: begin is called repeatedly on the same generator until it returns end

relevant xkcd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants