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
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'
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