Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/242#issuecomment-39378171
The Python one is indeed an iterable, but it also seems to be an iterator.
That might be confusing to users, because if they use it as an iterator and
cache it, they can't reuse it. Maybe make it only act as an iterable? In that
case it will essentially be a wrapper over an array that only provides the
__iter__ method, kind of weird but good for ensuring that this will be
compatible with on-disk storage later.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---