Skip to content

Objtyp #136

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 3 commits into from
Sep 9, 2018
Merged

Objtyp #136

merged 3 commits into from
Sep 9, 2018

Conversation

windelbouwman
Copy link
Contributor

Added builtin next and iter functions.

Still a little unsure whether iter should be a type, or we should have a sequence iterator type.

@cthulahoops
Copy link
Collaborator

Oh, we're both thinking about iterators. This will make it easy to generalise my pull request to deal with other types of iterators. :)

Looks like python has separate list_iterator and tuple_iterator types. For the moment an iter type seems reasonable, we can figure out more details as we go.

Do you have plans to implement generators soon? (Otherwise that's my next target.)

@cthulahoops cthulahoops merged commit d443c64 into master Sep 9, 2018
@cthulahoops
Copy link
Collaborator

Read this too quickly.

I think iter should call __iter__.

@windelbouwman
Copy link
Contributor Author

I am not planning on implementing generators. My next target is the with statement.

@windelbouwman windelbouwman deleted the objtyp branch February 10, 2019 12:59
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