grumpyhome / grumpy

Grumpy is a Python to Go source code transcompiler and runtime.
Apache License 2.0
420 stars 18 forks source link

Added support for iter(f, sentinel) #77

Closed windom closed 6 years ago

windom commented 6 years ago

To support the sentinel variant of iter, a new iterator type had to be added: callableIterator. I'm not completely happy that I had to put it in its own file (callableiter.go), but I did not find a suitable place for it (core.go was a candidate, but it does not really define types).

alanjds commented 6 years ago

Hi. I am on a sprint meetup right now. If you want to talk about this issue, just say.

alanjds commented 6 years ago

@windom I had merged your other PR and triggered the failing test here, now passing. Tell me when you got happy with the code and I will ask others to peer-review it, ok?

alanjds commented 6 years ago

Thanks for the code and the help @windom.