Commits

ZyX_I committed 2618ae4

Added field names to __repr__

Comments (0)

Files changed (1)

                     raise ValueError("Accuracy value cannot be negative")
 
     def __repr__(self):
-        return "{}({!r}, {!r})".format(self.__class__.__name__,
-                                       self.num, self.acc)
+        return "{0}({1!r}, {2!r})".format(self.__class__.__name__,
+                                          self.num, self.acc)
 
     def __str__(self):
         num=self.num