Re: pyserial and file open conflict?



On May 26, 6:54 pm, Peter <p.wallst...@xxxxxxxxx> wrote:
On 23 Maj, 16:13, Grant Edwards <gra...@xxxxxxxx> wrote:



On 2008-05-23, Peter <p.wallst...@xxxxxxxxx> wrote:

On 15 Maj, 19:37, Grant Edwards <gra...@xxxxxxxx> wrote:
On 2008-05-15, p.wallst...@xxxxxxxxx <p.wallst...@xxxxxxxxx> wrote:

I have a small but rather annoying problem withpyserial. I want to
open a file on disk for reading and then open a com-port, write lines
from the file to the port and then read something back and compare it
to the next line in the file. Should be simple. And it is, apart from
the fact that the file seems to be doubled ...? Or it loops through
the file twice.

If I exclude the "import serial" it works.

Any ideas?

Your problem is in line 117 of your program.

Do you have to much time?

"Do you have a sense of irony?" he asked, already knowing the answer.

--
Grant

Grant - "Do you have a sence of appropriateness"? he asked, already
knowing the answer. I had no idea this is a comedy club. I might argue
that my reply was also some sort of humor, but you clearly didn't see
it that way. Maybe you should try living according to the rules you
make for others?

Diez - Did you mean the section which covers Asperger's Syndrome?

I'm just being a hacker here guys ... according to the guidelines.

It's amazing how such a simple question gets derailed immediately.
Without any light on the subject   whatsoever.

Try asking about your problem again. Think before writing. Read your
text after you write it. Tell what you are trying to do, how you are
trying to do and what's the buggy behaviour. Copy the relevant part of
your source code here.
.



Relevant Pages

  • Re: pyserial and file open conflict?
    ... open a file on disk for reading and then open a com-port, ... from the file to the port and then read something back and compare it ...
    (comp.lang.python)
  • Re: pyserial and file open conflict?
    ... open a file on disk for reading and then open a com-port, ... from the file to the port and then read something back and compare it ...
    (comp.lang.python)
  • Re: pyserial and file open conflict?
    ... open a file on disk for reading and then open a com-port, ... from the file to the port and then read something back and compare it ...
    (comp.lang.python)
  • Re: pyserial and file open conflict?
    ... open a file on disk for reading and then open a com-port, ... from the file to the port and then read something back and compare it ... he asked, already knowing the answer. ...
    (comp.lang.python)
  • Re: Recycled scientists
    ... There was -- I don't have it handy but its in a stack of my newspaper clippings from recent WSJs-- a report of a recent study that was comparable to a similar study carried out some ten years ago that showed reading comprehension today is, across the board, down substantially and across a large cross section of our society compared to ten years ago. ... And, there is also Adult ADHD, also a _new_ mental health problem, too.). ... Speaking of "eye candy", it has not escaped my attention that a lot of these movies have high imagery and impressive special effects but often empty, silly, simplistic, or trivial plots. ... Compare all this with, say, a traditional Ellery Queen mystery story. ...
    (sci.research.careers)