[IronPython] repr on c# class

2008-07-10 Thread Kamil Dworakowski
I need to define repr method in c#, for use in IronPython. I tried: [PythonName(repr)] public static object Repr(object o) { return o.ToString(); } which didn't work. Is there a way without subclassing in Python? -- Kamil

Re: [IronPython] repr on c# class

2008-07-10 Thread Dino Viehland
Dworakowski Sent: Thursday, July 10, 2008 9:53 AM To: Discussion of IronPython Subject: [IronPython] repr on c# class I need to define repr method in c#, for use in IronPython. I tried: [PythonName(repr)] public static object Repr(object o) { return o.ToString

Re: [IronPython] repr on c# class

2008-07-10 Thread Kamil Dworakowski
ethod named __repr__. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Kamil Dworakowski Sent: Thursday, July 10, 2008 9:53 AM To: Discussion of IronPython Subject: [IronPython] repr on c# class I need to define repr method in c#, for use in IronPython. I tried