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

Parallel mapping on Generators #19

Open
BenBE opened this issue Apr 20, 2020 · 0 comments
Open

Parallel mapping on Generators #19

BenBE opened this issue Apr 20, 2020 · 0 comments

Comments

@BenBE
Copy link

BenBE commented Apr 20, 2020

When trying to p_map on an iterator/generator p_tqdm fails when checking the length while setting up tqdm.

Steps to reproduce:

def id(x):
    return x

a = t_imap(id, [1,2,3,4])
b = p_imap(id, a)
for c in b:
    b.write(c)

Expected result:
Prints the numbers 1,2,3,4; each on its own line.

Actual result:
Crashes inside p_tqdm before setting up tqdm.

Debugging:
Both p_tqdm._parallel and p_tqdm._sequential are affected.

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

No branches or pull requests

1 participant