Open BenBE opened 4 years ago
When trying to p_map on an iterator/generator p_tqdm fails when checking the length while setting up tqdm.
p_map
p_tqdm
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.
p_tqdm._parallel
p_tqdm._sequential
When trying to
p_map
on an iterator/generatorp_tqdm
fails when checking the length while setting uptqdm
.Steps to reproduce:
Expected result: Prints the numbers 1,2,3,4; each on its own line.
Actual result: Crashes inside
p_tqdm
before setting uptqdm
.Debugging: Both
p_tqdm._parallel
andp_tqdm._sequential
are affected.