Skip to content

gpython: Implement iter() #53

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

Closed
2 tasks done
corona10 opened this issue Feb 12, 2019 · 1 comment
Closed
2 tasks done

gpython: Implement iter() #53

corona10 opened this issue Feb 12, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@corona10
Copy link
Collaborator

corona10 commented Feb 12, 2019

TODO

  • Implement callable_iterator
  • Implement iter() builtin

callable_itereator should be implemented before implementing iter() builtin

@corona10 corona10 added the enhancement New feature or request label Feb 12, 2019
@corona10
Copy link
Collaborator Author

corona10 commented Feb 12, 2019

Return a new iterator. The first parameter, callable, can be any Python callable object that can be called with no parameters; each call to it should return the next item in the iteration. When callable returns a value equal to sentinel, the iteration will be terminated.

https://docs.python.org/3/c-api/iterator.html#c.PyCallIter_New

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

No branches or pull requests

1 participant