I ended up implementing my serial I/O application using blocking input
(which feeds a chain of generators) and Queue, using pySerial and
threading.

Thanks to Ori Peleg and Roman Yakovenko for their suggestions.

On Tue, 2009-10-06 at 23:27 +0200, Ori Peleg wrote:
> If you want to go async, and you're comfortable with Twisted, the
> framework supports serial port input.
> If like Roman suggests blocking reads meet your needs, maybe you don't
> need a thread - the entire application just blocks.
> If you do need to block in a different thread, communicate between
> threads using Python's thread-safe
> Queue: http://docs.python.org/library/queue.html

                                     --- Omer
-- 
The brain does not use addresses.  www.werner-seyfried.com
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html

_______________________________________________
Python-il mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

לענות