[Pyrex] Weak references to Pyrex extension types
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon May 26 01:42:30 CEST 2003
> From reading the Python Library Reference (section 3.3.3 "Weak
> References in Extension Types") it doesn't sound particularly
> difficult to support weak referencing. So is there any chance to get
> this into Pyrex in the near future?
It does look fairly straightforward. I'll add it to
the ToDo list.
> Is there any disadvantage in making *all* Pyrex extension types support
> weak references?
Not much, by the looks of it, only 4 bytes per instance.
I'll probably do it that way to begin with, and not worry
until someone complains about the overhead. :-)
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