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.
15 lines
221 B
15 lines
221 B
11 years ago
|
print(1 is 1)
|
||
|
print(1 is 2)
|
||
|
print(1 is not 1)
|
||
|
print(1 is not 2)
|
||
|
|
||
|
|
||
|
print([1, 2] is [1, 2])
|
||
|
a = [1, 2]
|
||
|
b = a
|
||
|
print(b is a)
|
||
|
|
||
|
# TODO: strings require special "is" handling, postponed
|
||
|
# until qstr refactor.
|
||
|
#print("a" is "a")
|