[Pyrex] weak references to Pyrex instances?
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue Oct 5 03:37:19 CEST 2004
"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?
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list