[IronPython] SetGlobal and GetGlobal in IPbeta 9
joesox at gmail.com
Thu Jul 13 02:09:53 CEST 2006
I didn't see the cn_pe.Globals IDictionary. Now I get it. Thanks
On 7/12/06, Shri Borde <Shri.Borde at microsoft.com> wrote:
> Hi Joe,
> The model for the hostig APIs is that a module (represented by EngineModule) is basically an IDictionary<string, object>, just like in Python (for the most part).
> The user can create a IDictionary<string, object> if she wants a customized implementation of a dictionary. This will allow the user to override reads and writes to the dictionary and implement logging, lazy lookup etc. For simple scenarios, the simpler overloads of PythonEngine.CreateModule create an Dictionary<string, object> for you.
> We also removed the requirement of using SymbolIDs to simplify the API. Instead, we translate to SymbolIDs under the hood.
> All the properties of the DefaultModule are also exposed directly on the PythonEngine for ease of use.
More information about the Ironpython-users