kopia lustrzana https://github.com/micropython/micropython-lib
Merge afb5e250a1
into 68e0dfce0a
commit
18dbd64db6
|
@ -0,0 +1,3 @@
|
|||
metadata(version="0.0.1")
|
||||
|
||||
module("weakref.py")
|
|
@ -0,0 +1,11 @@
|
|||
"""
|
||||
# weakref
|
||||
https://docs.python.org/3/library/weakref.html
|
||||
|
||||
Micropython does not have support for weakref in the VM, so currently this is a simple stub
|
||||
module that directly assigns the object reference to simplify porting of other libraries.
|
||||
"""
|
||||
|
||||
|
||||
def ref(obj):
|
||||
return lambda: obj
|
Ładowanie…
Reference in New Issue