[Pyrex] Function Pointer
Greg Ewing
greg at cosc.canterbury.ac.nz
Fri Mar 5 03:52:20 CET 2004
Bob Ippolito <bob at redivi.com>:
> On Mar 4, 2004, at 9:31 PM, Marco Bubke wrote:
>
> > Oh, I don't need ref counting. There will be allways a ref to the
> > object.
>
> Sounds like famous last words to me :)
Also, it's not the only issue I was thinking of. When casting
between Python and non-Python types, there's a possibility of
ending up with mismatched increfs and decrefs, which will hose
you whether you're keeping a reference or not.
Just a little thought to help keep you awake at night... :-)
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