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

fix iteration over Client #5522

Merged
merged 1 commit into from Apr 6, 2014
Merged

fix iteration over Client #5522

merged 1 commit into from Apr 6, 2014

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 4, 2014

I didn't intend for Client to be iterable, but defining __getitem__ makes it iterable as long as engine IDs are continuous (not always the case).

This explicitly defines __iter__ so it behaves consistently.

closes #5519

I didn't intend for Client to be iterable,
but defining `__getitem__` makes it iterable
as long as engine IDs are continuous (not always the case).

This explicitly defines `__iter__` so it behaves consistently.
@minrk minrk added this to the 2.1 milestone Apr 4, 2014
minrk added a commit that referenced this pull request Apr 6, 2014
@minrk minrk merged commit cc81137 into ipython:master Apr 6, 2014
@minrk minrk deleted the iter-client branch April 6, 2014 19:22
minrk added a commit that referenced this pull request Apr 9, 2014
I didn't intend for Client to be iterable, but defining `__getitem__` makes it iterable as long as engine IDs are continuous (not always the case).

This explicitly defines `__iter__` so it behaves consistently.

closes #5519
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
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.

IPython.parallel.Client behavior as iterator
1 participant