(self, filename)
Open a new file named 'filename'.  This overrides both the
           'filename' and 'file' arguments to the constructor.
Open a new file named 'filename'.  This overrides both the
           'filename' and 'file' arguments to the constructor.
Open a new file named filename . This overrides both the filename and file arguments to the constructor .
def open (self, filename):
        """Open a new file named 'filename'.  This overrides both the
           'filename' and 'file' arguments to the constructor."""

        self.filename = filename
        self.file = open (self.filename, 'r')
        self.current_line = 0
def open ( self , filename ) : self . filename = filename self . file = open ( self . filename , 'r' ) self . current_line = 0