Created
March 11, 2013 02:57
-
-
Save cointoss1973/5131606 to your computer and use it in GitHub Desktop.
pySerial API Parity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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