t; public class Foo {
> >>> >[SpecialName]
> >>> >public object GetBoundMember (string name) {
> >>> >return name;
> >>> >}
> >>> > }
> >>> >
> >>> >
> >>> >
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
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
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,
>
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
: 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
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
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
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