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
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
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