[Python-Dev] use PyCObject (was: CVS: python/dist/src/PC msvcrtmodule.c,1.4,1.5 _winreg.c,1.5,1.6)

Mark Hammond mhammond@skippinet.com.au
Sat, 1 Jul 2000 23:23:21 +1000


> While I'm very glad that I suggested PyLong_FromVoidPtr() for issues like
> this, I think that returning an HKEY should probably use a PyCObject. You
> will then be able to supply a "free" function that can close the HKEY.

This is exactly what we do.  Trents patches are just for the functions that
return the underlying handle value as an integer (which is definately a
useful thing to be able to do!)

Mark.