Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: new mypyc primitive for weakref.ref #19099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
Loading
from

Conversation

BobTheBuidler
Copy link

@BobTheBuidler BobTheBuidler commented May 16, 2025

This PR adds a new mypyc primitive for weakref.ref

I wasn't able to figure out what name mypyc expects for weakref.proxy, so I took that out and will keep that for a separate PR later on. ref is more commonly used than proxy anyway.

for later, I tried:

  • weakref.proxy
  • weakref.ProxyType
  • weakref.weakproxy

no luck with those

also for later, I'll need to finish #19145 to add a primitive for weakref.ref.__call__

@BobTheBuidler
Copy link
Author

BobTheBuidler commented May 17, 2025

Done. This just needs tests now.

  • tests

@BobTheBuidler BobTheBuidler changed the title feat: mypyc weakref_ops.py feat: new mypyc primitive for weakref.ref May 23, 2025
@BobTheBuidler BobTheBuidler marked this pull request as ready for review May 23, 2025 23:57
@BobTheBuidler
Copy link
Author

BobTheBuidler commented May 24, 2025

@JukkaL I've cleaned up the commit history and this is now ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.