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.
10 lines
226 B
10 lines
226 B
print(id(1) == id(2))
|
|
print(id(None) == id(None))
|
|
# This can't be true per Python semantics, just CPython implementation detail
|
|
#print(id([]) == id([]))
|
|
|
|
l = [1, 2]
|
|
print(id(l) == id(l))
|
|
|
|
f = lambda:None
|
|
print(id(f) == id(f))
|
|
|