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 serhiy.storchaka
Recipients benjamin.peterson, serhiy.storchaka, stutzbach
Date 2017-03-15.15:11:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489590666.79.0.55108836997.issue29819@psf.upfronthosting.co.za>
In-reply-to
Content
os.truncate(), os.ftruncate() and truncate() methods of file-like objects raise OverflowError when the argument is out of ranger of certain C type. It would be better to extend the behavior of small integers to large integers. ValueError is raised for negative integers and it should be raised for negative integers out of range. Values larger than the current size should be ignored in BytesIO.truncate() and StringIO.truncate(). BytesIO.truncate() and StringIO.truncate() should never raise OverflowError. Since the behavior of underlying OS functions is OS and FS depended, OverflowError can be raised for large integers in os.truncate(), os.ftruncate() and FileIO.truncate().
History
Date User Action Args
2017-03-15 15:11:06serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, stutzbach
2017-03-15 15:11:06serhiy.storchakasetmessageid: <1489590666.79.0.55108836997.issue29819@psf.upfronthosting.co.za>
2017-03-15 15:11:06serhiy.storchakalinkissue29819 messages
2017-03-15 15:11:06serhiy.storchakacreate