def get_stopbits():
stopbits = []<EOL>s = pyserial.Serial()<EOL>for name, value in s.getSupportedStopbits():<EOL><INDENT>stopbits.append((value, name,))<EOL><DEDENT>return tuple(stopbits)<EOL>
Returns supported stop bit lengths in a Django-like choices tuples.