Index: . =================================================================== --- . (revision 3455) +++ . (working copy) @@ -12,6 +12,21 @@ public static final String exposed_name="str"; public static void typeSetup(PyObject dict,PyType.Newstyle marker) { + class exposed___cmp__ extends PyBuiltinMethodNarrow { + + exposed___cmp__(PyObject self,PyBuiltinFunction.Info info) { + super(self,info); + } + + public PyBuiltinFunction bind(PyObject self) { + return new exposed___cmp__(self,info); + } + + public PyObject __call__(PyObject arg0) { + return new PyInteger(((PyString)self).__cmp__(arg0)); + } + } + dict.__setitem__("__cmp__",new PyMethodDescr("__cmp__",PyString.class,1,1,new exposed___cmp__(null,null))); class exposed___ne__ extends PyBuiltinMethodNarrow { exposed___ne__(PyObject self,PyBuiltinFunction.Info info) {