[Python-Dev] WeakSet in Python 2.7

Michael Foord michael at voidspace.org.uk
Mon Mar 29 21:21:04 CEST 2010

On 29/03/2010 19:14, Daniel Stutzbach wrote:
> On Mon, Mar 29, 2010 at 12:16 PM, Michael Foord 
> <michael at voidspace.org.uk <mailto:michael at voidspace.org.uk>> wrote:
>     Python 3 includes a WeakSet implementation. Any objections to me
>     backporting this to 2.7?
>     http://docs.python.org/py3k/library/weakref.html#weakref.WeakSet
> Backporting WeakSet would also make it possible to backport the fix 
> for this reference leak:
> http://bugs.python.org/issue2521

It should be possible to fix it with a WeakKeyDictionary instead of WeakSet.

All the best,

Michael Foord

> --
> Daniel Stutzbach, Ph.D.
> President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>


READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100329/ade129c9/attachment.html>

More information about the Python-Dev mailing list