Next / Previous / Contents / Shipman's homepage

11. Sox.__init__()

The constructor has little to do except to remember its output file and initialize the element stack.

sox.py
# - - -   S o x . _ _ i n i t _ _

    def __init__(self, outFile=None):
        '''Constructor.
        '''
        if outFile is None:
            self.outFile = sys.stdout
        else:
            self.outFile = outFile

        self._stack = []