[issue37728] 'is' behaving differently in script and interactive shel
rathinavelu thiruvenkatam
report at bugs.python.org
Wed Jul 31 04:16:38 EDT 2019
New submission from rathinavelu thiruvenkatam <rathinavelu at gmail.com>:
af=1.1
bf=1.1
print(f'{af==bf},{af is bf}, {bf is af}' )
""" Script outputs
True,True, True.
On Shell
af=1.1
bf=1.1
print(f'{af==bf},{af is bf}, {bf is af}' )
True,False, False
"""
----------
messages: 348790
nosy: rathinavelu thiruvenkatam
priority: normal
severity: normal
status: open
title: 'is' behaving differently in script and interactive shel
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37728>
_______________________________________
More information about the Python-bugs-list
mailing list