Andrew Leech 2025-04-27 14:28:24 +00:00 zatwierdzone przez GitHub
commit 18dbd64db6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,3 @@
metadata(version="0.0.1")
module("weakref.py")

Wyświetl plik

@ -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