March 2003
Intermediate to advanced
656 pages
39h 30m
English
resize
m.resize(n)Changes the length of m, so that
len(
m
)
becomes n. Does not affect the size of
m’s file.
m’s length and the
file’s size are independent. To set
m’s length to be equal to
the file’s size, call
m
.resize(
m
.size( )). If m’s
length is larger than the file’s size,
m is padded with null bytes
(\x00).
Read now
Unlock full access