[New-bugs-announce] [issue27721] strtobool returns 0 and 1 rather than False and True
Joseph Bane
report at bugs.python.org
Tue Aug 9 15:35:52 EDT 2016
New submission from Joseph Bane:
The distutils strtobool function returns 0 or 1 rather than the native boolean type True or False values:
https://hg.python.org/cpython/file/3.5/Lib/distutils/util.py#l304
Please see the attached patch for updates to this function. I have included updates to use a f-string in the raise and casefold instead of lower.
----------
components: Distutils
files: patch.diff
keywords: patch
messages: 272263
nosy: Joseph Bane, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: strtobool returns 0 and 1 rather than False and True
type: enhancement
versions: Python 2.7, Python 3.5
Added file: http://bugs.python.org/file44060/patch.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27721>
_______________________________________
More information about the New-bugs-announce
mailing list