Skip to content

fix iteration over Client#5522

Merged
minrk merged 1 commit into
ipython:masterfrom
minrk:iter-client
Apr 6, 2014
Merged

fix iteration over Client#5522
minrk merged 1 commit into
ipython:masterfrom
minrk:iter-client

Conversation

@minrk
Copy link
Copy Markdown
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