

class Security:
    def __init__(self, name='', par=0., val=0.):
        self.name = name
        self.par = par
        self.val = val

    def __repr__(self):
        if self.name:
            s = ' "%s"' % self.name
        else:
            s = ''
        return 'Security' + s + ': Par = %.3g, Val = %.3g' % (self.par, self.val)

@@ -329,8 +329,59 @@
 lf.val)%0A
+%0A%0ADOLLAR = Security(name='dollar', par=1., val=1.)%0A

add DOLLAR Security instance