Author Zach Beniash
Recipients Zach Beniash
Date 2019-07-11.15:10:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562857832.91.0.995710130518.issue37564@roundup.psfhosted.org>
In-reply-to
Content
Today when using argparse.ArgumentParser it seems that the bool type is not supported in a logical way.
Foe example:
-------------------------------------
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--mybool", type=bool)
parsed_args = parser.parse(["--mybool", "False"])
--------------------------------------
parsed_args.my_bool evaluates to True

Instead we should expect to evaluate False here.
History
Date User Action Args
2019-07-11 15:10:32Zach Beniashsetrecipients: + Zach Beniash
2019-07-11 15:10:32Zach Beniashsetmessageid: <1562857832.91.0.995710130518.issue37564@roundup.psfhosted.org>
2019-07-11 15:10:32Zach Beniashlinkissue37564 messages
2019-07-11 15:10:32Zach Beniashcreate