[New-bugs-announce] [issue26994] unexpected behavior for booleans in argparse

Nathan Naze report at bugs.python.org
Tue May 10 14:30:29 EDT 2016

New submission from Nathan Naze:

Setting a boolean type in argparse gives unexpected behavior when setting "True", "False", etc.


Would have expected parsing to fail for unclear input that doesn't neatly map to a boolean value.

components: Library (Lib)
messages: 265256
nosy: Nathan Naze
priority: normal
severity: normal
status: open
title: unexpected behavior for booleans in argparse
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list