Tomáš Jeziorský added the comment:
I found what appears to be a very similar issue so instead of creating a new
issue I will place it here as a comment.
The following code:
==
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('letter', choices=['a', 'b', 'c'],
default
New submission from Tomáš Jeziorský :
The following code is expected to fail:
import multiprocessing
def f(x):
return x
if __name__ == '__main__':
with multiprocessing.Pool(2, maxtasksperchild=0) as pool:
pool.map(f, range(3))
since it uses a wrong value