John Ehresman writes:
 >  * Py_BuildValue also does not consume references that are passed to it. 
 >    Since this is used to build the tuples that are attached to the signal
 >    handlers, the callback function objects were never released. I fixed
 >    the signal connection functions, but did not fix other uses of
 >    Py_BuildValue.

  You can get Py_BuildValue to "acquire" a passed-in reference by
using the 'N' format specifier instead of 'O'.  This may or may not be 
useful in this context; I didn't read the patch closely.
  This is documented in the extension manual:

        http://www.python.org/doc/current/ext/buildValue.html


  -Fred

--
Fred L. Drake, Jr.           <[EMAIL PROTECTED]>
Corporation for National Research Initiatives
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to