Re: f.seek() unwanted output

2009-01-06 Thread thomasvang...@gmail.com
Hi Tim, works! thanx a lot Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: f.seek() unwanted output

2009-01-05 Thread Tim Chase
I'm having trouble with a script that is printing the output of f.seek () [snip] I have a file in memory. when i try f.seek(0) #or any other value in f.tell() it gives me 0 as output: the following script illustrates my 'problem' for a in range(10): f.seek(a) 0 1 2 3 4 5 6 7 8 9

f.seek() unwanted output

2009-01-05 Thread thomasvang...@gmail.com
I'm having trouble with a script that is printing the output of f.seek () whereas in the documentation it is quoted not to have any output: file.seek(offset[, whence])¶ Set the file’s current position, like stdio‘s fseek. The whence argument is optional and defaults to os.SEEK_SET or 0

Re: f.seek() unwanted output

2009-01-05 Thread pruebauno
On Jan 5, 8:52 am, thomasvang...@gmail.com thomasvang...@gmail.com wrote: I'm having trouble with a script that is printing the output of f.seek () whereas in the documentation it is quoted not to have any output: file.seek(offset[, whence])¶     Set the file’s current position, like