pyHandle Object for win32pipe.PeekNamedPipe(pyHandle, bufsize)
===

The win32pipe.PeekNamedPipe gets the arguments pyHandle(read handle) and a buf size . The pyHandles are returned by win32pipe.createPipe() which gives me a read and write handle to the pipes. 

Now, assume I have got the handle/integer value of the read handle of this pipe to another process. I want to read the data on the handle using peekNamedPipe method by passing in a pyHandle. 

I read elsewhere that functions tat accept pyHandles will also accept the int values, but in this case it does not , it gives me an error saying invalid handle when I try to pass the int.

Is there a way I can create a pyHandle Object with the integer that I have ?