weak refs (was Re: Exporting events from Python COM class._)

Alex Martelli aleaxit at yahoo.com
Tue Nov 14 16:35:23 EST 2000


<shindich at my-deja.com> wrote in message news:8uqg1e$6tt$1 at nnrp1.deja.com...
    [snip]
> Speaking of Weak References... I'm working on a project that provides a
> C++ extension object that works as a weak reference.
> Pre-alpha release of PyWeakReference project is now available on Source
> Forge (http://sourceforge.net/projects/pyweakreference/)

A neat hack, it seems to me -- simple and speedy.  It's
unfortunately dependent on certain not-clearly-committed-
as-eternal details of Python's C-level implementation, but
that seems to me to be a great  motivation for _including_
such functionality in Core Python... (in Jython I think it
might be implemented, with the same Python-level API,
by relying on Java's own weak refs; I don't know if .NET
has a similar mechanism, maybe Mark Hammond can help
us out here...).

Anyway, I fully intend to take advantage of this module
for my own future uses...!


Alex






More information about the Python-list mailing list