This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Graham.Oliver
Recipients Graham.Oliver, docs@python
Date 2020-08-26.00:48:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598402882.51.0.310018876035.issue41636@roundup.psfhosted.org>
In-reply-to
Content
Here is the text 

https://docs.python.org/3.6/distutils/apiref.html#distutils.util.strtobool

Convert a string representation of truth to true (1) or false (0).

True values are y, yes, t, true, on and 1; false values are n, no, f, false, off and 0. Raises ValueError if val is anything else.

I wondered what would happen with 'FALSE' i.e. upper case. It appears to behave the same way as 'false'. In fact case does not seem to be an issue, so 'FaLsE' will return 0 as well.

So a note that this function is independent of case may be helpful
History
Date User Action Args
2020-08-26 00:48:02Graham.Oliversetrecipients: + Graham.Oliver, docs@python
2020-08-26 00:48:02Graham.Oliversetmessageid: <1598402882.51.0.310018876035.issue41636@roundup.psfhosted.org>
2020-08-26 00:48:02Graham.Oliverlinkissue41636 messages
2020-08-26 00:48:01Graham.Olivercreate