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
weaklist #35642
Comments
WeakList are list whose entries are referenced weakly. |
Logged In: YES Thanks for the patch. I would recommend to publish it as a *If* it is added, a number of corrections must be made to
|
Logged In: YES Needs motivation. Without an need for the data structure, Set to "pending" while awaiting an explanation of the |
Logged In: YES Oops, I meant to adjust the priority on this. |
Logged In: YES Mind if I bring this back up? This doesn't seem to be in Andres mentioned his original motivation on a list: I've also seen it duplicated in this recipe: I'd like to see it in for the same reason. |
Logged In: YES This might be interesting to have. Would this be more I've not looked at the contributed code, so can't make any |
Logged In: YES I'm not sure if either is more useful than the other, they It looks like a set would work for the links I mentioned, A weak set could possibly be implemented on top of |
Logged In: YES Weaksets would not be warranted unless the use cases Also, I'm not sure weaklists are a good idea. First, it is Second, weaklists only have a differential advantage when it When order tracking is necessary, there are reasonable for subscriber in sorted(wkd, key=wkd.__getitem__):
self.notify(subscriber, message) This approach incurs an O(n log n) sort cost for each group None of this came up on the referenced newsgroup posting |
Logged In: YES FYI, ZODB has a WeakSet implementation, in utils.py here: http://svn.zope.org/ZODB/trunk/src/ZODB/ I wouldn't add this to the core -- it's very specific to ZODB's One thing that "should be" addressed in the core is explained |
No news after two years and a half. Considering the arguments of Raymond Feel free to bring this issue to python-dev, and if there's real need, Fred, it's assigned to you... what do you think? Thank you! |
Also we already have a WeakSet now since the abc module needs it. |
Facundo: Agreed as well; since the use case isn't strong, let's avoid |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: