Re: Possible read()/readline() bug?

2008-10-23 Thread Terry Reedy
Mike Kent wrote: To followup on this: Terry: Yes, I did in fact miss the 'buffer' parameter to open. Setting the buffer parameter to 0 did in fact fix the test code that I gave above, but oddly, did not fix my actual production code; it continues to get the data as first read, rather than what i

Re: Possible read()/readline() bug?

2008-10-23 Thread Joshua Kugler
Mike Kent wrote: > To followup on this: > > Terry: Yes, I did in fact miss the 'buffer' parameter to open. > Setting the buffer parameter to 0 did in fact fix the test code that I > gave above, but oddly, did not fix my actual production code; it > continues to get the data as first read, rather

Re: Possible read()/readline() bug?

2008-10-23 Thread M.-A. Lemburg
On 2008-10-22 23:00, kdwyer wrote: > On 22 Oct, 19:54, Mike Kent <[EMAIL PROTECTED]> wrote: >> Before I file a bug report against Python 2.5.2, I want to run this by >> the newsgroup to make sure I'm not being stupid. >> >> I have a text file of fixed-length records I want to read in random >> orde

Re: Possible read()/readline() bug?

2008-10-23 Thread pruebauno
On Oct 23, 9:48 am, Mike Kent <[EMAIL PROTECTED]> wrote: > To followup on this: > > Terry: Yes, I did in fact miss the 'buffer' parameter to open. > Setting the buffer parameter to 0 did in fact fix the test code that I > gave above, but oddly, did not fix my actual production code; it > continues

Re: Possible read()/readline() bug?

2008-10-23 Thread Mike Kent
To followup on this: Terry: Yes, I did in fact miss the 'buffer' parameter to open. Setting the buffer parameter to 0 did in fact fix the test code that I gave above, but oddly, did not fix my actual production code; it continues to get the data as first read, rather than what is currently on the

Re: Possible read()/readline() bug?

2008-10-23 Thread Carl Banks
On Oct 22, 2:54 pm, Mike Kent <[EMAIL PROTECTED]> wrote: > Before I file a bug report against Python 2.5.2, I want to run this by > the newsgroup to make sure I'm not being stupid. > > I have a text file of fixed-length records I want to read in random > order.  That file is being changed in real-t

Re: Possible read()/readline() bug?

2008-10-22 Thread Terry Reedy
Steven D'Aprano wrote: On Wed, 22 Oct 2008 16:59:45 -0400, Terry Reedy wrote: Mike Kent wrote: Before I file a bug report against Python 2.5.2, I want to run this by the newsgroup to make sure I'm not [missing something]. Good idea ;-). What you are missing is a rereading of the fine manua

Re: Possible read()/readline() bug?

2008-10-22 Thread Steven D'Aprano
On Wed, 22 Oct 2008 16:59:45 -0400, Terry Reedy wrote: > Mike Kent wrote: >> Before I file a bug report against Python 2.5.2, I want to run this by >> the newsgroup to make sure I'm not [missing something]. > > Good idea ;-). What you are missing is a rereading of the fine manual > to see what y

Re: Possible read()/readline() bug?

2008-10-22 Thread kdwyer
On 22 Oct, 19:54, Mike Kent <[EMAIL PROTECTED]> wrote: > Before I file a bug report against Python 2.5.2, I want to run this by > the newsgroup to make sure I'm not being stupid. > > I have a text file of fixed-length records I want to read in random > order. That file is being changed in real-tim

Re: Possible read()/readline() bug?

2008-10-22 Thread Terry Reedy
Mike Kent wrote: Before I file a bug report against Python 2.5.2, I want to run this by the newsgroup to make sure I'm not [missing something]. Good idea ;-). What you are missing is a rereading of the fine manual to see what you missed the first time. I recommend this *whenever* you are ha

Re: Possible read()/readline() bug?

2008-10-22 Thread pruebauno
On Oct 22, 3:44 pm, [EMAIL PROTECTED] wrote: > On Oct 22, 2:54 pm, Mike Kent <[EMAIL PROTECTED]> wrote: > > > > > Before I file a bug report against Python 2.5.2, I want to run this by > > the newsgroup to make sure I'm not being stupid. > > > I have a text file of fixed-length records I want to re

Re: Possible read()/readline() bug?

2008-10-22 Thread pruebauno
On Oct 22, 2:54 pm, Mike Kent <[EMAIL PROTECTED]> wrote: > Before I file a bug report against Python 2.5.2, I want to run this by > the newsgroup to make sure I'm not being stupid. > > I have a text file of fixed-length records I want to read in random > order. That file is being changed in real-t

Possible read()/readline() bug?

2008-10-22 Thread Mike Kent
Before I file a bug report against Python 2.5.2, I want to run this by the newsgroup to make sure I'm not being stupid. I have a text file of fixed-length records I want to read in random order. That file is being changed in real-time by another process, and my process want to see the changes to