[issue37464] multiple comparison
New submission from Chandan Kumar <chandankumar948@gmail.com>: a=1.0 b=0.0 c=0.0 if (a> d and b): print('hi') else: print("bye") its going to else part a=1.0 b=0.1 c=0.2 then its going to if part a==1.0 b=0 c=0.1 then again its going to else part ---------- assignee: docs@python components: Documentation messages: 346972 nosy: Chandan, docs@python priority: normal severity: normal status: open title: multiple comparison type: enhancement versions: Python 3.7 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37464> _______________________________________
Change by Chandan Kumar <chandankumar948@gmail.com>: ---------- type: enhancement -> behavior _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37464> _______________________________________
Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment: a=1.0 b=0.0 c=0.0 if (a> d and b): print('hi') else: print("bye") d is not defined here and it throws a NameError for me. Can you please attach the full scripts that can be used to reproduce the behavior in the report. ---------- nosy: +xtreak _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37464> _______________________________________
participants (2)
-
Chandan Kumar -
Karthikeyan Singaravelan