Skip to content

Instantly share code, notes, and snippets.

@cointoss1973
Created March 11, 2013 02:57
Show Gist options
  • Save cointoss1973/5131606 to your computer and use it in GitHub Desktop.
Save cointoss1973/5131606 to your computer and use it in GitHub Desktop.
pySerial API Parity
$ ipython
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.13 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import serial
In [2]: serial.PARI
serial.PARITY_EVEN serial.PARITY_NAMES serial.PARITY_ODD
serial.PARITY_MARK serial.PARITY_NONE serial.PARITY_SPACE
In [2]: serial.PARITY_EVEN
Out[2]: 'E'
In [3]: serial.PARITY_ODD
Out[3]: 'O'
In [4]: serial.PARITY_NONE
Out[4]: 'N'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment