def set_alphabet(self, alphabet):
<EOL>new_alphabet = list(sorted(set(alphabet)))<EOL>if len(new_alphabet) > <NUM_LIT:1>:<EOL><INDENT>self._alphabet = new_alphabet<EOL>self._alpha_len = len(self._alphabet)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>" "<STR_LIT>")<EOL><DEDENT>
Set the alphabet to be used for new UUIDs.