def get_parities():
parities = []<EOL>s = pyserial.Serial()<EOL>for name, value in s.getSupportedParities():<EOL><INDENT>parities.append((value, name,))<EOL><DEDENT>return tuple(parities)<EOL>
Returns supported parities in a Django-like choices tuples.