[Pyrex] weak references to Pyrex instances?
Lenard Lindstrom
len-l at telus.net
Wed Oct 6 21:20:41 CEST 2004
On Tue, 05 Oct 2004 14:37:19 +1300 Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:
> "Phillip J. Eby" <pje at telecommunity.com>:
>
> > Well, you can probably subclass it in Python and add:
> >
> > __slots__ = '__weakref__'
> >
> > I don't know for sure if it works with Pyrex, nor do I know a better way to
> > do it with Pyrex.
>
> Adding weakref support is on my todo list, but I haven't got
> around to it yet.
>
> Also, I haven't decided whether all extension types should
> be weak referenceable automatically, or whether it should
> be an option. Any thoughts on that from people?
>
Make weak referencing optional as it is with __slots__.
Lenard Lindstrom
<len-l at telus.net>
More information about the Pyrex
mailing list