You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output is {1: 1, 0: 0, 2: 4, 7: 49, 4: 16, 8: 64, 3: 9, 6: 36, 5: 25, 9: 81} (the order might be different)
This is, however, just a workaround. Python dicts are thread-safe, and there are no reason why can't one use it with this library. However, the problem might belong to the dependency, pathos
I have the following code:
It outputs
{}
instead of{0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81}
.In comparasion,
concurrent.futures
works as expected:The text was updated successfully, but these errors were encountered: