Author: Juergen Boemmels <boemm...@web.de> Branch: Changeset: r12:29be9de3ed49 Date: 2011-11-15 20:23 +0100 http://bitbucket.org/pypy/lang-scheme/changeset/29be9de3ed49/
Log: Use __class__.__name__ in __repr__ Simplifies debugging diff --git a/scheme/object.py b/scheme/object.py --- a/scheme/object.py +++ b/scheme/object.py @@ -38,7 +38,7 @@ return True def __repr__(self): - return "<W_Root " + self.to_string() + ">" + return "<" + self.__class__.__name__ + " " + self.to_string() + ">" def eval_cf(self, ctx, caller, cont, elst=[], enum=0): return self.eval(ctx) @@ -75,9 +75,6 @@ def to_string(self): return self.name - def __repr__(self): - return "<W_Symbol " + self.name + ">" - def eval_tr(self, ctx): w_obj = ctx.get(self.name) return (w_obj, None) @@ -109,9 +106,6 @@ def to_boolean(self): return self.boolval - def __repr__(self): - return "<W_Boolean " + str(self.boolval) + ">" - def eqv(self, w_obj): if isinstance(w_obj, W_Boolean): return self.boolval is w_obj.boolval _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit