Beispiel #1
0
    def __repr__(self):
        p = "{0!r}, {1!r}".format(self.amount, self.max_value)

        if self.min_value != -self.max_value:
            p += ", {0!r}".format(self.min_value)

        return "{}({})".format(classname(self), p)
Beispiel #2
0
    def __repr__(self):
        p = '{0!r}, {1!r}'.format(self.amount, self.max_value)

        if self.min_value != -self.max_value:
            p += ', {0!r}'.format(self.min_value)

        return "{}({})".format(classname(self), p)
Beispiel #3
0
 def __repr__(self):
     return "{0}({1}, sides={2})".format(
         classname(self), str(self), self.sides)
Beispiel #4
0
 def __repr__(self):
     return "{0}({1})".format(
         classname(self), ', '.join(map(str, self.orginal_operands)))
Beispiel #5
0
 def __repr__(self):
     return "{0}({1}, random_element={2!r})".format(
         classname(self), str(self), self.random_element)
Beispiel #6
0
 def __repr__(self):
     return "{0}({1})".format(
         classname(self), ", ".join(map(str, self.original_operands))
     )
Beispiel #7
0
 def __repr__(self):
     return "{0}({1}, random_element={2!r})".format(
         classname(self), str(self), self.random_element
     )
Beispiel #8
0
 def __repr__(self):
     p = '{0!r}, {1!r}'.format(self.amount, self.max_value)
     if self.min_value != 1:
         p += ', {0!r}'.format(self.min_value)
     return "{}({})".format(classname(self), p)
Beispiel #9
0
 def __repr__(self):
     return "{0}({1}, sides={2})".format(classname(self), str(self),
                                         self.sides)