pyserial and file open conflict?

Grant Edwards grante at visi.com
Fri May 23 10:13:38 EDT 2008


On 2008-05-23, Peter <p.wallstedt 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




More information about the Python-list mailing list