mirror of
https://github.com/python/cpython
synced 2026-09-28 07:38:20 +03:00
SF #515000, print result of f.tell() in test() instead of ignoring
This commit is contained in:
parent
a0af63b242
commit
9fb289d826
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ def test():
|
||||||
f.write(lines[1])
|
f.write(lines[1])
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
print 'First line =', `f.readline()`
|
print 'First line =', `f.readline()`
|
||||||
here = f.tell()
|
print 'Position =', f.tell()
|
||||||
line = f.readline()
|
line = f.readline()
|
||||||
print 'Second line =', `line`
|
print 'Second line =', `line`
|
||||||
f.seek(-len(line), 1)
|
f.seek(-len(line), 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue