Next / Previous / Contents / Shipman's homepage

26.1. AbBind.__init__()

This constructor establishes the only invariant shared by all subclasses: it stores the abbr argument in the instance attribute of the same name.

nomcompile3
# - - -   A b B i n d . _ _ i n i t _ _

    def __init__ ( self, abbr ):
        '''Constructor for AbBind base class.
        '''
        self.abbr = abbr