Table of Contents
os
io
io.BufferedIOBase
io.BufferedRWPair
io.BufferedRandom
io.BufferedReader
io.BufferedWriter
io.BytesIO
io.FileIO
io.IOBase
io.IncrementalNewlineDecoder
io.RawIOBase
io.StringIO
io.TextIOBase
io.TextIOWrapper
time
argparse
optparse
getopt
logging
logging.config
logging.handlers
getpass
curses
curses.ascii
curses.panel
platform
errno
ctypes
BufferedRWPair.
truncate
Truncate file to size bytes.
File pointer is left unchanged. Size defaults to the current IO position as reported by tell(). Returns the new size.