[New-bugs-announce] [issue38001] Unexpected behaviour of 'is' operator

Digin Antony report at bugs.python.org
Sun Sep 1 10:25:17 EDT 2019

New submission from Digin Antony <diginantony777 at gmail.com>:

The 'is' operator behave differently on two sets of values 
please find the attachment below

tested environment 
windows 7
python 3.7.3

Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> a=256
>>> b=256
>>> a is b
>>> a=257
>>> b=257
>>> a is b

components: Interpreter Core
files: bug.png
messages: 350952
nosy: Digin Antony
priority: normal
severity: normal
status: open
title: Unexpected behaviour of  'is'  operator
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48578/bug.png

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list