Next / Previous / Contents / Shipman's homepage

13.1. Polar.__init__()

There may be two constructor arguments, or you can pass it a two-valued iterable. See Section 15, “argPair(): Process one or two arguments”.

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

    def __init__(self, *p):
        '''Constructor
        '''
        self.r, self.theta = argPair(*p)