You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ChocoPy/pa3-tests/core/op_is.py

20 lines
229 B

class A(object):
a:int = 42
a1:A = None
a2:A = None
a3:A = None
a4:A = None
a1 = A()
a2 = a1
a3 = A()
print(a1 is a1)
print(a1 is a2)
print(a1 is a3)
print(a1 is a4)
print(a1 is None)
print(a4 is None)
print(None is None)