[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: Changing type. Crash is typically segfault or hang in c code rather than an exception. -- nosy: +iritkatriel type: crash -> behavior ___ Python tracker

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-14 Thread Felix Fontein
Change by Felix Fontein : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-14 Thread Felix Fontein
Change by Felix Fontein : -- keywords: +patch pull_requests: +28333 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30111 ___ Python tracker ___

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-14 Thread Felix Fontein
New submission from Felix Fontein : When argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified, trying to display --help results in a crash. Reproducer: import argparse parser = argparse.ArgumentParser() parser.add_argument('--test',