Re: File modes

2007-05-11 Thread HMS Surprise
On May 10, 7:11 pm, Jon Pentland <[EMAIL PROTECTED]> wrote: > I don't really see the use for being able to do that. Have you tried > Well, I think I found a reason and it probably happens quite a bit. I open the file and read it into a list. I pop some elements from the list for processing and th

Re: File modes

2007-05-10 Thread Gabriel Genellina
En Thu, 10 May 2007 21:11:16 -0300, Jon Pentland <[EMAIL PROTECTED]> escribió: > I don't really see the use for being able to do that. Have you tried > doing it with the 'app' mode?, But I am guessing that it is just an > advanced mode spawned from 'w'. So, no, I don't think you can do this. In

Re: File modes

2007-05-10 Thread Jon Pentland
I don't really see the use for being able to do that. Have you tried doing it with the 'app' mode?, But I am guessing that it is just an advanced mode spawned from 'w'. So, no, I don't think you can do this. -- http://mail.python.org/mailman/listinfo/python-list

Re: File modes

2007-05-10 Thread Daniel Nogradi
> After reading a file is it possible to write to it without first > closing it? I tried opening with 'rw' access and re-winding. This does > not seem to work unless comments are removed. > > > Also, does close force a flush? > > Thanks, > > jh > > #~~ > > f = open('c:\\