Use start and end position in repr for simpler debugging.

This commit is contained in:
Matthias Bussonnier authored and Dave Halter committed 2017-02-14 23:53:53 +01:00
1 parent b72aa41019
commit ef1b1f41e4
1 file changed
+1 -1
+1 -1
View File
@@ -317,7 +317,7 @@ class Leaf(Base):
@utf8_repr
def __repr__(self):
return "<%s: %s>" % (type(self).__name__, self.value)
return "<%s: %s start=%s>" % (type(self).__name__, self.value, self.start_pos)
class LeafWithNewLines(Leaf):