Alex Waygood <alex.wayg...@gmail.com> added the comment:
Hi! Your message here is a little unclear. Are you proposing a new feature (an enhancement), or filing a bug report? In either case, I'm afraid this behavior is very unlikely to change. In general, strings in Python are always considered truthy unless they are empty, even if they are the literal string "False" or "0". This is a very important principle in Python, and changing it would raise serious backwards-compatibility concerns. You can read more about truth-value testing here: https://docs.python.org/3/library/stdtypes.html#truth-value-testing ---------- components: -2to3 (2.x to 3.x conversion tool) nosy: +AlexWaygood status: open -> pending type: enhancement -> _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46082> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com