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

DM-7264: Port to Python 3 #4

Merged
merged 10 commits into from Sep 14, 2016
Merged

DM-7264: Port to Python 3 #4

merged 10 commits into from Sep 14, 2016

Conversation

timj
Copy link
Member

@timj timj commented Aug 18, 2016

No description provided.

@@ -35,7 +37,7 @@ def test2(cache, data, *args, **kwargs):

startPool()

dataList = map(float, range(NUM))
dataList = list(map(float, range(NUM)))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataList = [float(i) for i in range(NUM)]

?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... that's much better

PaulPrice and others added 10 commits September 14, 2016 15:06
In the previous version of mpi4py (v1.3.1), mpi4py.MPI.Comm.scatter had a default value
for sendobj of None. In v2.0.0 the default was removed, causing the code to break when using
multiple objects in the pool.
Python 3 cannot compare None and an integer, so we first verify that the index is not None.
@fred3m fred3m merged commit f0833ce into master Sep 14, 2016
@ktlim ktlim deleted the tickets/DM-7264 branch August 25, 2018 06:44
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.

None yet

3 participants