Cross platform serial library?

Andrew M. Kuchling akuchlin at cnri.reston.va.us
Fri May 21 10:16:53 EDT 1999


Cameron Laird writes:
>I'm optimistic that an effort to write a cross-platform library
>would win support--maybe even workers!--from several camps, perhaps
>including also PHP and Lua.  I don't think this would have happened

	I don't think a cross-platform C library is required; at least
on Unix, most of the pieces are already implementable in a scripting
language, because all you need is access to open(2), read(2), and
write(2), plus a termios module.  Full serial support might expose
deficiencies in Python's POSIX support: functions that aren't wrapped,
missing constants, etc.  Other platforms may need to sit on top of
platform-specific libraries, of course.

-- 
A.M. Kuchling			http://starship.python.net/crew/amk/
I prefer (all things being equal) regularity/orthogonality and logical
syntax/semantics in a language because there is less to have to remember. (Of
course I *know* all things are NEVER really equal!)
    -- Guido van Rossum, 6 Dec 91





More information about the Python-list mailing list