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

2009-04-14 Thread Curt Hagenlocher
t; public class Foo { > >>> >[SpecialName] > >>> >public object GetBoundMember (string name) { > >>> >return name; > >>> >} > >>> > } > >>> > > >>> > > >>> >

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

2009-04-14 Thread Alex News
M > To: Discussion of IronPython > Subject: Re: [IronPython] **kwargs and __getattr__ handling in csharp > functions and classes? > > > > It should be Microsoft.Scripting.DynamicObject in 2.0. > > On Tue, Apr 14, 2009 at 11:02 AM, Alex News wrote: > > Current IronPython

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

2009-04-14 Thread Dino Viehland
rride TryGetMember. Then it'll work not only w/ >> > Python but w/ other DLR based languages as well (e.g. C#, >> > VB.NET<http://vb.net/>, IronRuby, >> > etc...). >> > >> > >> >> -Original Message----- >> >> From

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

2009-04-14 Thread Curt Hagenlocher
t you really want to do is inherit directly from the > >> > DynamicObject class and override TryGetMember. Then it'll work not > only w/ > >> > Python but w/ other DLR based languages as well (e.g. C#, > >> > VB.NET<http://vb.net/>, > IronRuby, >

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

2009-04-14 Thread Alex News
and override TryGetMember.  Then it'll work not only w/ >> > Python but w/ other DLR based languages as well (e.g. C#, VB.NET, IronRuby, >> > etc...). >> > >> > >> >> -Original Message- >> >> From: users-boun...@lists.ir

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

2009-04-14 Thread Curt Hagenlocher
: users-boun...@lists.ironpython.com [mailto:users- > >> boun...@lists.ironpython.com] On Behalf Of Alex News > >> Sent: Tuesday, April 14, 2009 7:32 AM > >> To: users@lists.ironpython.com > >> Subject: [IronPython] **kwargs and __getattr__ handling in csharp &g

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

2009-04-14 Thread Alex News
Message- >> From: users-boun...@lists.ironpython.com [mailto:users- >> boun...@lists.ironpython.com] On Behalf Of Alex News >> Sent: Tuesday, April 14, 2009 7:32 AM >> To: users@lists.ironpython.com >> Subject: [IronPython] **kwargs and __getattr__ handling in csharp

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

2009-04-14 Thread Dino Viehland
lists.ironpython.com] On Behalf Of Alex News > Sent: Tuesday, April 14, 2009 7:32 AM > To: users@lists.ironpython.com > Subject: [IronPython] **kwargs and __getattr__ handling in csharp > functions and classes? > > I would like to write some functions and classes in csharp tha

[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 IronPython.Runtime.Python