Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
dpgeorge
/
micropython
Public
forked from
micropython/micropython
Notifications
You must be signed in to change notification settings
Fork
12
Star
58
Code
Pull requests
2
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Projects
Wiki
Security and quality
Insights
weakref: Don't leak cyclic weakrefs.
- #21
#21
Open
AJMansfield
wants to merge 11 commits into
dpgeorge:py-add-weakref
dpgeorge/micropython:py-add-weakref
from
AJMansfield:weakref-leak
AJMansfield/micropython:weakref-leak
Copy head branch name to clipboard
Conversation
Commits
11
(11)
Checks
Files changed
Open
weakref: Don't leak cyclic weakrefs.
#21
AJMansfield
wants to merge 11 commits into
dpgeorge:py-add-weakref
dpgeorge/micropython:py-add-weakref
from
AJMansfield:weakref-leak
AJMansfield/micropython:weakref-leak
Copy head branch name to clipboard
Commits
Commits on Feb 24, 2026
py/modweakref: Implement weakref module with ref class.
Show description for f146bed
dpgeorge
committed
f146bed
View commit details
Copy full SHA for f146bed
Browse repository at this point
tests/basics: Add tests for weakref.ref and weakref.finalize.
Show description for fa80182
dpgeorge
committed
fa80182
View commit details
Copy full SHA for fa80182
Browse repository at this point
tests/basics: Add test for weakref having exception in callback.
Show description for 6fc21ef
dpgeorge
committed
6fc21ef
View commit details
Copy full SHA for 6fc21ef
Browse repository at this point
webassembly/Makefile: Add test//% target.
Show description for 6973f73
dpgeorge
committed
6973f73
View commit details
Copy full SHA for 6973f73
Browse repository at this point
webassembly/variants/pyscript: Enable weakref module and add tests.
Show description for 5f4bdfd
dpgeorge
committed
5f4bdfd
View commit details
Copy full SHA for 5f4bdfd
Browse repository at this point
tests/ports/webassembly: Update heap_expand expected output.
Show description for b2fad56
dpgeorge
committed
b2fad56
View commit details
Copy full SHA for b2fad56
Browse repository at this point
docs/library/weakref: Add documentation for weakref module.
Show description for bcd4413
dpgeorge
committed
bcd4413
View commit details
Copy full SHA for bcd4413
Browse repository at this point
tools/ci.sh: Increase qemu_arm test run timeout.
Show description for 180db59
dpgeorge
committed
180db59
View commit details
Copy full SHA for 180db59
Browse repository at this point
tests/basics/weakref_multiple_refs.py: Get working on webassembly.
Show description for 5955972
dpgeorge
committed
5955972
View commit details
Copy full SHA for 5955972
Browse repository at this point
Commits on Mar 2, 2026
tests/basics/weakref: Test that cyclic closures are not leaked.
Show description for 5b07252
AJMansfield
committed
5b07252
View commit details
Copy full SHA for 5b07252
Browse repository at this point
py/gc: Move `mp_weakref_map` state from VM to MEM.
Show description for 266ef6c
AJMansfield
committed
266ef6c
View commit details
Copy full SHA for 266ef6c
Browse repository at this point
You can’t perform that action at this time.