[Python.NET] Getting an open Python file handle into CLR

Jeffrey Bush jeff at coderforlife.com
Tue Jul 21 21:31:17 CEST 2015

As I said in my message, you can using IntPtr.Overloads[Int64](handle).


On Tue, Jul 21, 2015 at 11:12 AM, Dan Lenski <dlenski at gmail.com> wrote:

> Ron Harding via PythonDotNet <pythondotnet at ...> writes:
> > perhaps re-directed command line calls for stdin, stdout, stderr in c#
> interacting with python i/o command line calls(although in python it is
> common practice to daisy chain commands).
> Unfortunately, I cannot redirect the output of the C# library to a
> convenient filehandle like stdout/stderr; I need to be specify a
> FileStream object.
> It pretty much comes down to this: how do I cast a win32 file handle to an
> IntPtr?
> Thanks,
> Dan
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20150721/b9c9927f/attachment.html>

More information about the PythonDotNet mailing list