Message289677
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(). |
|
Date |
User |
Action |
Args |
2017-03-15 15:11:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, benjamin.peterson, stutzbach |
2017-03-15 15:11:06 | serhiy.storchaka | set | messageid: <1489590666.79.0.55108836997.issue29819@psf.upfronthosting.co.za> |
2017-03-15 15:11:06 | serhiy.storchaka | link | issue29819 messages |
2017-03-15 15:11:06 | serhiy.storchaka | create | |
|