Re: [IronPython] ScriptScope Oddity

2008-10-30 Thread Michael Foord
02 AM To: Discussion of IronPython Subject: [IronPython] ScriptScope Oddity Why does setting '__file__' to None on a ScriptScope through 'SetVariable' fail, whilst setting it directly as an attribute (from inside IronPython) succeeds? Is this intentional? >>> scope

Re: [IronPython] ScriptScope Oddity

2008-10-30 Thread Dino Viehland
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Thursday, October 30, 2008 9:02 AM To: Discussion of IronPython Subject: [IronPython] ScriptScope Oddity Why does setting '__file__' to None on a ScriptScope through 'SetVariable'

[IronPython] ScriptScope Oddity

2008-10-30 Thread Michael Foord
Why does setting '__file__' to None on a ScriptScope through 'SetVariable' fail, whilst setting it directly as an attribute (from inside IronPython) succeeds? Is this intentional? >>> scope [Microsoft .Scripting.Hosting.ScriptScope]> >>> scope.SetVariable('__file__', None) Traceback (most rece