Next / Previous / Contents / Shipman's homepage

13.3. Polar.__str__()

homcoord.py
# - - -   P o l a r . _ _ s t r _ _

    def __str__(self):
        '''Return self as a string.
        '''
        return ( "(%.4g, %.4gd)" %
                 (self.r, num.degrees(self.theta)) )