[docs] os.ftruncate documentation error
Richard Ipsum
richardipsum at fastmail.co.uk
Sun Feb 12 09:01:58 EST 2017
On Sun, Feb 12, 2017, at 01:53 PM, Richard Ipsum wrote:
> Hi folks,
>
> The documentation for os.ftruncate seems a little misleading,
> for both 2.7[1] and 3.6[2] the docs for os.ftruncate say,
>
> "Truncate the file corresponding to file descriptor fd, so that it is at
> most length bytes in size."
I just spotted
https://docs.python.org/2.7/library/stdtypes.html?highlight=truncate#file.truncate
so I guess I'm suggesting that this kind of statement should be included
for the truncate
functions in the os module as well.
Thanks,
Richard Ipsum
More information about the docs
mailing list