PyHANDLE Object
A Python object, representing a win32 HANDLE.
Comments
This object wraps a win32 HANDLE object, automatically closing it when the object is destroyed. To guarantee cleanup, you can call either PyHANDLE::Close , or win32api::CloseHandle .Most functions which accept a handle object also accept an integer - however, use of the handle object is encouraged.
简言之:python处理win32请求时,需要handle的地方,使用pyhandle处理
注意点:1.也可以用整数形式的handle替代pyhandle
2.使用pyhandle的核心目的是 automatically closing it when the object is destroyed.
http://docs.activestate.com/activepython/2.5/pywin32/PyHANDLE.html