R. David Murray added the comment:
type=bool doesn't do what you think it does. It does 'bool(value)', and
'bool("False")' is True, since "False" is a non-empty string.
See issue 21208 for some further discussion.
----------
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Change default behavior of arguments with type bool when
options are specified
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26994>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com