[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2020-03-16 Thread Tomáš Jeziorský
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

[issue39477] multiprocessing Pool maxtasksperchild=0 raises exception with endless traceback

2020-01-28 Thread Tomáš Jeziorský
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