You should be able to do:

>>> import System
>>> a = System.IO.FileStream('abc', System.IO.FileMode.Create)
>>> file(a)
<file 'F:\Product\IronPython\IronPython\abc', w+>

That should work w/ a network stream as well, but the filename will show up as 
"nul" in that case.


Do you want to help develop Dynamic languages on CLR? 
(http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo
Sent: Sunday, March 12, 2006 11:30 PM
To: Discussion of IronPython
Subject: [IronPython] Creating Python file from .NET stream

Beta 4 changelogs have:

"Support for constructing Python file from .NET Stream"

But I still can't figure out how to do this. Any example will be
greatly appreciated.

For example, how do I create Python file from NetworkStream?

Seo Sanghyeon
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to