[IronPython] 2.0B1 Hosting: Creating Python Types
dinov at exchange.microsoft.com
Wed Mar 19 04:49:28 CET 2008
Evaling __builtins__ should work (or import __builtin__ and then eval that).
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] 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
> 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?
Users mailing list
Users at lists.ironpython.com
More information about the Ironpython-users