A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005272.html below:

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

[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.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4