New submission from rathinavelu thiruvenkatam <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue37728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com