serial and threads

Chris Liechti cliechti at gmx.net
Tue Aug 17 22:19:52 CEST 2004


natunika at gmx.de (Silke) wrote in 
news:39ba6e78.0408170215.59f5bfc0 at posting.google.com:

> I'm trying to write a program in python using the modules
> 'serialwin32' and 'thread' to create one thread that writes to a

if you mean that serialwin32 from pyserial, then there is an example of a 
tcp<->serial gateway:
http://cvs.sf.net/viewcvs.py/pyserial/pyserial/examples/tcp_serial_redirect
.py?rev=1.2&view=auto
(one line URL)

i'd sugest to import "serial" and not the platform modules. that way you 
have protablity to other OS for free, and you speak in the same terms as 
the others do.

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list