Serial Communications

Peter Hansen peter at engcorp.com
Tue Nov 21 23:29:18 EST 2000


J Dustin Flesher wrote:
> 
> Any one know how to do serial port communications in a platform-independent
> manner?

Nobody knows how, unfortunately, and if the problem has been solved most
of us don't know about it yet.  In the Python world, depending on the
platform there are different options.  For Win32 there are two or three
options, while for Unix it seems more standardized and well-supported.

Since you can't go purely platform-independent, maybe you can define
which platforms you definitely need to support.  Maybe there are some
reasonable options to choose from if you limit the scope a little.

(Note: there are cross-platform serial comm libraries, but to work with
Python you'd still have to wrap up each one and make it available to
Python on the different platforms.)



More information about the Python-list mailing list