[issue37464] multiple comparison

2019-07-01 Thread SilentGhost
SilentGhost added the comment: Your issue seems to be related to evaluation of 0.0 as falsy value. See documentation at https://docs.python.org/3/library/stdtypes.html#truth-value-testing -- assignee: docs@python -> nosy: +SilentGhost -docs@python resolution: -> not a bug stage:

[issue37464] multiple comparison

2019-07-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan 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:

[issue37464] multiple comparison

2019-07-01 Thread Chandan Kumar
Change by Chandan Kumar : -- type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37464] multiple comparison

2019-07-01 Thread Chandan Kumar
New submission from Chandan Kumar : 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