[PYTHONMAC-SIG] serial communications
Jack Jansen
Jack.Jansen@cwi.nl
Sun, 02 Mar 1997 18:19:02 +0100
Recently, Jesse Bregman <jbregman@mail.arc.nasa.gov> said:
> I know this must be possible, but I haven't found information anywhere
> about how to do serial communications using Python. I am used to Basic's
> method of treating the serial port as a file, then just reading or writing
> to it as if it were any other file. Does anyone know of a similarly easy
> way to do this with Python?
Yes, look at the ctb module. You can't read the serial port as if it
were a file, but it is pretty easy to write a wrapper object in Python
that would allow you to do this.
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
_______________
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________