-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
WeakKeyIdDict implementation (keeping WeakKeyDict) #28182
base: master
Are you sure you want to change the base?
Conversation
The build failures are because of a mistake in the |
If this is something to consider for 1.x, please add the milestone. Otherwise close. |
Hello everyone! I was wondering: Can this still be used? I mean: I see that there are conflicts for this to be merged straight away, but maybe one can still take the code and build a working I am asking because this would really be helpful for what I am doing in the Oscar.jl project right now. Thanks for any assessment or suggestions! |
Not sure this will ever get merged (and that is probably good, considering it does not get too much interest ;-). If you need this, you probably should use it via JuliaCollections/DataStructures.jl#402, which does not get merged either ;-) |
Procrastinating this morning I coded up an implementation of both WeakKeyDict and WeakKeyIdDict.
TODO:
stdlib/
and check whether theId
version should be used (note WeakKeyDict is not used inbase/
): occurrence 1 (According to Jeff this is needs a WeakKeyDict), occurrence 2 (According to Jeff this is needs a WeakKeyDict), occurrence 3WeakRef
s should compare asRef
s do, see WeakKeyDict based on object ids #3002 (comment) (which could be done trivially within this PR)x-refs: #3002, #24941, #28161