Re: [IronPython] CodeContext went from language-independent to IronPython-specific

2010-03-21 Thread Curt Hagenlocher
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

Re: [IronPython] CodeContext went from language-independent to IronPython-specific

2010-03-21 Thread Tomas Matousek
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

[IronPython] CodeContext went from language-independent to IronPython-specific

2010-03-21 Thread Paul Felix
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

[IronPython] IronPython exception line numbers in Gestalt

2010-03-21 Thread Ryan Berdeen
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

Re: [IronPython] IronPython for asp.net and codefiles

2010-03-21 Thread Jimmy Schementi
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.

Re: [IronPython] Equals between RuntimeType and python type

2010-03-21 Thread Dino Viehland
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

[IronPython] Equals between RuntimeType and python type

2010-03-21 Thread Idan Zaltzberg
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.

Re: [IronPython] IronPython for asp.net and codefiles

2010-03-21 Thread Dody Gunawinata
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