Home | History | Annotate | Download | only in python2.7

Lines Matching refs:seek

10 f.seek(pos)         # set current position
11 f.seek(pos, mode) # mode 0: absolute; 1: relative; 2: relative to EOF
95 def seek(self, pos, mode = 0):
99 positioning); other values are 1 (seek relative to the current
100 position) and 2 (seek relative to the file's end).
294 f.seek(len(lines[0]))
296 f.seek(0)
301 f.seek(-len(line), 1)
304 raise RuntimeError, 'bad result after seek back'
305 f.seek(len(line2), 1)
308 f.seek(f.tell() - len(line))
311 raise RuntimeError, 'bad result after seek back from EOF'
317 f.seek(0, 2)