Next / Previous / Contents / Shipman's homepage

27.1. StdBind.__init__()

First we call the parent class constructor; then we store away the Taxon instance.

nomcompile3
# - - -   S t d B i n d . _ _ i n i t _ _

    def __init__ ( self, abbr, taxon, eng ):
        '''Constructor for StdBind
        '''
        #-- 1 --
        # [ self  :=  an instance of AbBind for abbr ]
        AbBind.__init__ ( self, abbr )

The English name is stored in private attribute .__eng to avoid conflict with the .eng() method that must be supplied by derived classes.

nomcompile3
        #-- 2 --
        self.taxon = taxon
        self.__eng = eng