Staging: this is not the live site, pydocs.org.
Generic Operating System Services
Truncate file to size bytes.
File pointer is left unchanged. Size defaults to the current IO
position as reported by tell(). Return the new size.
Changed in 3.5
- 3.5: Windows will now zero-fill files when extending.