The proper "DLRish" way to make a C# class "dynamic" is to implement
IDynamicMetaObjectProvider. The easiest way to do so for most purposes is to
derive from DynamicObject. GetBoundMember is purely an IronPython mechanism.
Indeed, anything that uses CodeContext is purely IronPython and will not
giv
Could you be specific about your scenario? What exactly is an
"application-defined context" and the classes that would need an access such
object?
Tomas
From: users-boun...@lists.ironpython.com
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Paul Felix
Sent: Sunday, March 21, 2010 5:5
Hi,
I am embedding IronPython in an application for scripting. I'm also making
some C# classes "dynamic" by implementing the special DLR methods like
GetBoundMember. My signatures for those special methods include the code
context:
[System.Runtime.
CompilerServices.SpecialName]
pu
I've just started trying to use Gestalt/dlr.js. I have a simple test
script (js.py), which throws an exception, then tries to extract a
line number from the exception.
-
import sys
def b():
try:
raise Exception()
except Exception as ex:
exceptionType, exceptionValu
Pablo, what is the reason you are looking into obfuscation? Is it because
you're concerned that people could make requests for your *.aspx.py files and
see the Python source? By default any request for a *.aspx.py file should fail
because that file extensions is not in the MIME type map on IIS.
It's a bug - It's already fixed for the final 2.6.1 release.
From: users-boun...@lists.ironpython.com
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Idan Zaltzberg
Sent: Sunday, March 21, 2010 7:11 AM
To: users@lists.ironpython.com
Subject: [IronPython] Equals between RuntimeType and py
Hi,
I am using Ipy 2.6 (final).
I tried to do the following code and got some puzzling results:
from System import Int64
x = Int64()
print type(x) == x.GetType() # return True
print type(x) != x.GetType() # also returns True!
Is this a bug or a am I missing something?
Thanks.
If you want to hide your logic from the source, move as much of the
functionality to a dll, whether it is a static or ironpython dll. I don't
think IronPython for ASP.Net supports compilable asp.net.
On Sat, Mar 6, 2010 at 4:52 PM, Pablo Dalmazzo wrote:
> Hi there,
>
> now I got to work the dlls