[IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
I would like to write some functions and classes in csharp that interact nicely python. I would like to write a function that can respond to keyword arguments, and a class that can dynamically resolve __getattr__. For the function I tried creating a function that takes a

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
Much appreciated, I will give that a try. In what namespace is DynamicObject declared? (I assume the required assemblies are already referenced if I'm pulling in IronPython). Thanks again, Alex On Tue, Apr 14, 2009 at 11:16 AM, Dino Viehland di...@microsoft.com wrote: For kwargs you need to

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Curt Hagenlocher
In current versions of IronPython, DynamicObject is in Microsoft.Scripting.Core as Microsoft.Scripting.DynamicObject. In .NET 4.0 System.Core, the same class will be called System.Dynamic.DynamicObject. (I just noticed this naming discrepancy today, and I think we should probably move it to at

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
Current IronPython = 2.01? I have Microsoft.Scripting.Core referenced, and can't find DynamicObject. There is an Microsoft.Scripting.Actions.IDynamicObject, and a Microsoft.Scripting.Runtime.IOldDynamicObject. I'm sure I'm missing something very basic. We are using .net 2.0.50727 SP1 On

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Curt Hagenlocher
It should be Microsoft.Scripting.DynamicObject in 2.0. On Tue, Apr 14, 2009 at 11:02 AM, Alex News anlee...@gmail.com wrote: Current IronPython = 2.01? I have Microsoft.Scripting.Core referenced, and can't find DynamicObject. There is an Microsoft.Scripting.Actions.IDynamicObject, and a

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Dino Viehland
I think it might be just Dynamic in 2.0. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Curt Hagenlocher Sent: Tuesday, April 14, 2009 11:05 AM To: Discussion of IronPython Subject: Re: [IronPython] **kwargs and __getattr__ handling in csharp

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
Well I am either suffering from severe user error, or it is not in the suggested locations. The best I could find was Microsoft.Scripting.Actions.Dynamic. It implements IDynamicObject. It does not have the aforementioned TryGetMember function to override, but does have a GetMember function to

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Curt Hagenlocher
No, that's the right class. Apparently, it's been changed a bit since ~late October when we branched off the 2.0 source. On Tue, Apr 14, 2009 at 11:58 AM, Alex News anlee...@gmail.com wrote: Well I am either suffering from severe user error, or it is not in the suggested locations. The best