This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcea
Recipients jcea, loewis, pitrou, rhettinger
Date 2010-11-11.00:39:13
SpamBayes Score 0.015697774
Marked as misclassified No
Message-id <1289436065.5.0.570833891551.issue10142@psf.upfronthosting.co.za>
In-reply-to
Content
"""
>>> import os
>>> f=open("XX","w+b")
>>> f.seek(1024*1024)
1048576
>>> f.write(b"hello")
5
>>> f.seek(1024*1024*2)
2097152
>>> f.write(b"bye")
3
>>> f.seek(0,os.SEEK_HOLE)
0
>>> f.seek(0,os.SEEK_DATA)
1048576
>>> f.seek(1048576,os.SEEK_HOLE)
1179648
>>> f.seek(1179648,os.SEEK_DATA)
2097152
>>> f.seek(2097152,os.SEEK_HOLE)
2097155
>>> fd=f.fileno()
>>> os.lseek(fd,0,os.SEEK_HOLE)
0
>>> os.lseek(fd,0,os.SEEK_DATA)
1048576
>>> os.lseek(fd,1048576,os.SEEK_HOLE)
1179648
>>> os.lseek(fd,1179648,os.SEEK_DATA)
2097152
"""
History
Date User Action Args
2010-11-11 00:41:05jceasetrecipients: + jcea, loewis, rhettinger, pitrou
2010-11-11 00:41:05jceasetmessageid: <1289436065.5.0.570833891551.issue10142@psf.upfronthosting.co.za>
2010-11-11 00:39:13jcealinkissue10142 messages
2010-11-11 00:39:13jceacreate