Next / Previous / Contents / Shipman's homepage

7.5. BigInfo.__init__(): Constructor

The constructor for this class differs from PathInfo's constructor in that it requires one additional argument, the base path.

bigfiles.py
# - - -   B i g I n f o . _ _ i n i t _ _   - - -

    def __init__ ( self, path, basePath ):
        """Constructor for BigInfo."""

First we call the parent class constructor. Then we store the basePath argument in the internal attribute __basePath.

bigfiles.py
        #-- 1 --
        pathinfo.PathInfo.__init__ ( self, path )

        #-- 2 --
        self.__basePath  =  basePath