pyslha.py

changeset 123
c85e29bc13c4
parent 120
bffefe12df80
child 124
7bd52be093b2
     1.1 --- a/pyslha.py	Sat Feb 26 23:30:18 2011 +0100
     1.2 +++ b/pyslha.py	Sun Feb 27 00:14:05 2011 +0100
     1.3 @@ -84,6 +84,9 @@
     1.4          s += str(self.entries)
     1.5          return s
     1.6  
     1.7 +    def __repr__(self):
     1.8 +        return self.__str__()
     1.9 +
    1.10  
    1.11  class Decay(object):
    1.12      """
    1.13 @@ -110,6 +113,9 @@
    1.14      def __str__(self):
    1.15          return "%e %s" % (self.br, self.ids)
    1.16  
    1.17 +    def __repr__(self):
    1.18 +        return self.__str__()
    1.19 +
    1.20  
    1.21  class Particle(object):
    1.22      """
    1.23 @@ -149,6 +155,10 @@
    1.24                  s += "\n  %s" % d
    1.25          return s
    1.26  
    1.27 +    def __repr__(self):
    1.28 +        return self.__str__()
    1.29 +
    1.30 +
    1.31  
    1.32  def readSLHAFile(spcfilename, **kwargs):
    1.33      """

mercurial