[issue36163] same object, same method, but the is keyword return false.

2019-03-01 Thread lgj
New submission from lgj <929102...@qq.com>: >>> class A(): ... def a(self): ... pass ... >>> a = A() >>> a is a True >>> a.a is a.a False >>> id(a.a) 4532803784 >>> id(a.a) 4532803784 It's seems quite oops. --

[issue36156] different method, but id function return same value.

2019-03-01 Thread lgj
New submission from lgj <929102...@qq.com>: >>> class A: ... def a(self): ... return 0 ... def a1(self): ... return 1 ... >>> a =A() >>> id(a.a) 4316559496 >>> id(a.a1) 4316559496 >>> id(a) 4318155272 It' seems oops