micropython: add micropython component
This commit is contained in:
10
components/language/micropython/tests/basics/builtin_id.py
Normal file
10
components/language/micropython/tests/basics/builtin_id.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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))
|
Reference in New Issue
Block a user