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
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to