On 2008-10-11, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-10-11, zxo102 <[EMAIL PROTECTED]> wrote: > >> I have a system. An instrument attched to 'com1' is wireless >> connected to many sensors at different locations. The >> instrument can forward the "commands" (from pyserial's >> write()) to those sensors. Based on the "commands", the >> sensors keep sending corresponding data back to the instrument >> which wraps up those data and put into "com1" . The >> readlines() of pyserial pick up those data for processing. The >> data ?string' does not have "\n". > > If the data you're reading doesn't contain "\n", then you can't > use readline() or readlines().
P.S. To the OP: I normally block postings from google groups (which is where almost all Usenet spam comes from), so I only saw your posting because I was experimenting with my spam filtering. I'll only see additional postings if you post from a real news server or if somebody who does so quotes one of your postings. Yes, that sort of sucks. But, until Google shuts off the spam spigot, you're going to get short shrift if you post from Google. There are plenty of free news servers for the text groups like c.l.p, or you can post to the mailing list via gmane.org. -- Grant Edwards grante Yow! They collapsed at ... like nuns in the visi.com street ... they had no teen appeal! -- http://mail.python.org/mailman/listinfo/python-list