def set_mode(self, mode):
if not mode in [self.STRICT_MIN_LENGTH, self.DROP_TRAILING_SILENCE,<EOL>self.STRICT_MIN_LENGTH | self.DROP_TRAILING_SILENCE, <NUM_LIT:0>]:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._mode = mode<EOL>self._strict_min_length = (mode & self.STRICT_MIN_LENGTH) != <NUM_LIT:0><EOL>self._drop_tailing_silence = (mode & self.DROP_TRAILING_SILENCE) != <NUM_LIT:0><EOL>
:Parameters:

    `mode` : *(int)*
        New mode, must be one of:


    - `StreamTokenizer.STRICT_MIN_LENGTH`

    - `StreamTokenizer.DROP_TRAILING_SILENCE`

    - `StreamTokenizer.STRICT_MIN_LENGTH | StreamTokenizer.DROP_TRAILING_SILENCE`

    - `0`

See `StreamTokenizer.__init__` for more information about the mode.