[Pyrex] weak references to Pyrex instances?

vng1 at mac.com vng1 at mac.com
Tue Oct 5 04:31:21 CEST 2004


Is there any downside to making all extension types weak referenceable?

On 4-Oct-04, at 09:37 PM, Greg Ewing 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?
>
> 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	   +--------------------------------------+
>
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3901 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20041004/cf44b487/smime.bin


More information about the Pyrex mailing list