adding slightly better reprs in

This commit is contained in:
Paul R. Tagliamonte 2013-03-18 21:08:35 -04:00
parent 8ac73e64ff
commit a0ff144686
2 changed files with 6 additions and 0 deletions

View File

@ -25,3 +25,6 @@ class HyExpression(HyList):
"""
Hy S-Expression. Basically just a list.
"""
def __repr__(self):
return "(%s)" % (" ".join([str(x) for x in self]))

View File

@ -31,3 +31,6 @@ class HyList(HyObject, list):
x.replace(other)
HyObject.replace(self, other)
def __repr__(self):
return "[%s]" % (" ".join([str(x) for x in self]))