New submission from aziz <p146...@nu.edu.pk>:

>>> st = "True"
>>> bool(st)
True
>>> st = "False"
>>> bool(st)
True
>>> 
>>> stk = "False"
>>> bool(stk)
True
>>> eval(stk)
False

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 408595
nosy: aziz
priority: normal
severity: normal
status: open
title: type casting of bool
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

Reply via email to