Al is said in the title, the following code:
class X: pass
print(id(X()) == id(X()))
prints True If I run
id(X())
multiple times, I will see different ids. Also verification with "X() is X()" returns False as expected.
Al is said in the title, the following code:
class X: pass
print(id(X()) == id(X()))
prints True If I run
id(X())
multiple times, I will see different ids. Also verification with "X() is X()" returns False as expected.