Re: [IronPython] Silverlight on the Codeplex Site

2008-08-10 Thread Curt Hagenlocher
Well, it did! Thanks for pointing that out; I've removed that now-useless bit of information. On Fri, Aug 8, 2008 at 4:18 PM, Michael Foord [EMAIL PROTECTED]wrote: The IronPython Codeplex site proudly announces: Silverlight v1.1 Alpha includes IronPython support! Michael --

[IronPython] System.Scripting.Runtime.UnboundNameException

2008-08-10 Thread Huzaifa
i am trying this code and it is giving me exception $exception {name 'name' is not defined} System.Exception {System.Scripting.Runtime.UnboundNameException} CODE: ScriptRuntime env = ScriptRuntime.Create ( ); ScriptScope defaultScope = env.CreateScope ( ); ScriptEngine curEngine =

Re: [IronPython] System.Scripting.Runtime.UnboundNameException

2008-08-10 Thread Curt Hagenlocher
A hosting API global is not the same as a Python global. After all, Python globals aren't really global; they're scoped to the module you're in. I can't provide sample code offhand, but to do what you want, you'll need to do something like the following steps: 1) Create an empty script scope 2)

Re: [IronPython] Is there a way to create a new ScriptScopethat inherits from global ScriptScope?

2008-08-10 Thread Rainer Worbis
Hi, i had the same problem (hierarchical script scopes) and solved it by implementing my own SymbolDictionary (exactly BaseSymbolDictionary) So I can use the vars defined along the hierarchy like in scopes in c#. Rainer Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von

Re: [IronPython] System.Scripting.Runtime.UnboundNameException

2008-08-10 Thread Seshadri Pillailokam Vijayaraghavan
The following edit to your code snippet would give you what you want Comment out the current SetVariables call //env.Globals.SetVariable(name, Huzaifa); //Load the Forms assembly and set the variable in your defaultScope obj.

Re: [IronPython] IronPython 2.0B4 Docs

2008-08-10 Thread Dave Fugate
Hi Michael, I knew we forgot to mention something in the release notes but just couldn't put my finger on it. Thanks for spotting this. The omission of IronPython-2.0B4-Doc.zip which included Microsoft.Scripting.chm from IP 2.0B4 was actually intentional. Microsoft.Scripting.chm has been out

Re: [IronPython] IronPython 2.0B4 Docs

2008-08-10 Thread Michael Foord
Dave Fugate wrote: Hi Michael, I knew we forgot to mention something in the release notes but just couldn't put my finger on it. Thanks for spotting this. Ok. Michael The omission of IronPython-2.0B4-Doc.zip which included Microsoft.Scripting.chm from IP 2.0B4 was actually