import sys
import gc
def func_a(a,b,c):
print(a,b,c)
def func_b():
print("b")
a = func_b()
b = func_a(1,2,3)
print(id(a) == id(b))
print(a is b)
class c_1():
def __init__(self) -> None:
pass
class c_2():
def __init__(self) -> None:
pass
c1 = c_1()
c2 = c_2()
print(id(c1) == id(c2))
print(c1 is c2)
output:
b
1 2 3
True
True
False
False
Any idea why a is equal to b? when i add return 1
or not None return to a, a is not equal to b. Thank you.