Re: Problem with .next() method adding junk characters.

2006-10-02 Thread Terry Reedy
"Rainy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Paul McGuire wrote: >> I would guess then that the likely extent of any fix to this "bug" would >> be >> documentation to the effect of Fredrik's last comment above. > > Thanks.. I get it now. Should I close the bug report t

Re: Problem with .next() method adding junk characters.

2006-10-02 Thread Rainy
Paul McGuire wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > "Rainy" <[EMAIL PROTECTED]> wrote: > > > >> I'm just curious as to what's happening. I understand that you're not > >> supposed to call .next on a file open for writing. But I don't know why > >

Re: Problem with .next() method adding junk characters.

2006-10-02 Thread Paul McGuire
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Rainy" <[EMAIL PROTECTED]> wrote: > >> I'm just curious as to what's happening. I understand that you're not >> supposed to call .next on a file open for writing. But I don't know why >> and how it does what happened he

Re: Problem with .next() method adding junk characters.

2006-10-02 Thread Fredrik Lundh
"Rainy" <[EMAIL PROTECTED]> wrote: > I'm just curious as to what's happening. I understand that you're not > supposed to call .next on a file open for writing. But I don't know why > and how it does what happened here; besides, I've seen the same thing > happen before when I was doing something el

Re: Problem with .next() method adding junk characters.

2006-10-01 Thread Rainy
John Machin wrote: > Rainy wrote: > > Hi, > > > > I tried searching for this and did not find this issue. I only looked > > at about dozen hits, I apologize if this is covered somewhere and I > > missed it. Without much further ado, here's the thing (Win, Py2.5): > > > > >>> f = open('test', 'w')

Re: Problem with .next() method adding junk characters.

2006-10-01 Thread John Machin
Rainy wrote: > Hi, > > I tried searching for this and did not find this issue. I only looked > at about dozen hits, I apologize if this is covered somewhere and I > missed it. Without much further ado, here's the thing (Win, Py2.5): > > >>> f = open('test', 'w') > >>> f.fileno() > 4 > >>> f.write(

Problem with .next() method adding junk characters.

2006-10-01 Thread Rainy
Hi, I tried searching for this and did not find this issue. I only looked at about dozen hits, I apologize if this is covered somewhere and I missed it. Without much further ado, here's the thing (Win, Py2.5): >>> f = open('test', 'w') >>> f.fileno() 4 >>> f.write('1\n') >>> f.write('2\n3\n4\n')