Evaling __builtins__ should work (or import __builtin__ and then eval that).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Hardy Sent: Tuesday, March 18, 2008 7:29 PM To: Discussion of IronPython Subject: Re: [IronPython] 2.0B1 Hosting: Creating Python Types Hi Dino, > Until then probably the only way to do it right now is to call > __builtin__.file through Python code (to which you can pass in a stream). > The ObjectOperations class should make that fairly easy (you can convert file > to a delegate and then call it). I get the gist of this, but I can't figure out how to get a reference to __builtins__.file to call. What's the easiest way to get one? Thanks, Jeff _______________________________________________ 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