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 pitrou
Recipients pitrou
Date 2009-01-20.23:38:36
SpamBayes Score 0.025034761
Marked as misclassified No
Message-id <1232494718.16.0.105569040712.issue5016@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-01-20 23:38:38pitrousetrecipients: + pitrou
2009-01-20 23:38:38pitrousetmessageid: <1232494718.16.0.105569040712.issue5016@psf.upfronthosting.co.za>
2009-01-20 23:38:37pitroulinkissue5016 messages
2009-01-20 23:38:36pitroucreate