Message80295
FileIO.seekable() can return False if we first seek to a position such
that, when truncated to a signed int, it becomes negative:
>>> f = open('largefile', 'wb', buffering=0)
>>> f.seek(2**31, 0)
2147483648
>>> f.write(b'x')
1
>>> f.close()
>>> f = open('largefile', 'rb', buffering=0)
>>> f.seek(0, 2)
2147483649
>>> f.seekable()
False |
|
Date |
User |
Action |
Args |
2009-01-20 23:38:38 | pitrou | set | recipients:
+ pitrou |
2009-01-20 23:38:38 | pitrou | set | messageid: <1232494718.16.0.105569040712.issue5016@psf.upfronthosting.co.za> |
2009-01-20 23:38:37 | pitrou | link | issue5016 messages |
2009-01-20 23:38:36 | pitrou | create | |
|