pyserial and file open conflict?

Henrique Dante de Almeida hdante at gmail.com
Mon May 26 21:14:23 EDT 2008


On May 26, 6:54 pm, Peter <p.wallst... at gmail.com> wrote:
> On 23 Maj, 16:13, Grant Edwards <gra... at visi.com> wrote:
>
>
>
> > On 2008-05-23, Peter <p.wallst... at gmail.com> wrote:
>
> > > On 15 Maj, 19:37, Grant Edwards <gra... at visi.com> wrote:
> > >> On 2008-05-15, p.wallst... at gmail.com <p.wallst... at gmail.com> 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.



More information about the Python-list mailing list