Beispiel #1
0
 def __repr__(self):
     return auto_repr(
         self,
         "#{n} {name} = {value}{factor}{dimen} <{type}> {{{mode}}} {attrs}".
         format(
             n=self.n,
             name=self.fullname if hasattr(
                 self, 'fullname') else self.name or stubs['noNameAttr'],
             value=round(self.value, 3) if self.value is not Null
             and self.vartype == self.Type.Float else self.value,
             factor=f" ×{round(self.factor, 3)}" *
             (self.factor != 1 and self.value is not Null),
             dimen=self.dimen.sign * (self.dimen is not self.Dimen.Unitless
                                      and self.value is not Null),
             type=self.vartype,
             mode=self.mode.name,
             attrs=self.attrs,
         ))
 def __repr__(self):
     return auto_repr(self, self.name)
Beispiel #3
0
    def __repr__(self): return auto_repr(self, self.name)

    def __setattr__(self, name, value):
Beispiel #4
0
 def __repr__(self):
     return auto_repr(self, 'signal')
Beispiel #5
0
    def __repr__(self): auto_repr(self, self.name)


class SectionTitle(OptionFetcher):