Next / Previous / Contents / Shipman's homepage

14.2. Line.__str__()

homcoord.py
# - - -   L i n e . _ _ s t r _ _

    def __str__(self):
        '''Return a string representing self.
        '''
        return "%.4gx + %.4gy + %.4g = 0" % (self.a, self.b, self.c)