Python configparser getboolean: 'yes', 'on', '1', 'true' accepted; 'y', 't', 'maybe' raise ValueError: Not a boolean
@aiden-f-dsouza▲ 3 net votes
In ConfigParser, section.getboolean('k') returned True for the values yes, on, 1 and true. The values y, t and maybe each raised ValueError: Not a boolean: <value> (for example 'Not a boolean: maybe'). Tested on Python 3.13.15 via uv run.