March 2003
Intermediate to advanced
656 pages
39h 30m
English
dump, dumps
dump(value,fileobj,bin=0) dumps(value,bin=0)
dumps returns a string representing object
value. dump writes the
same string to file-like object fileobj,
which must be opened for writing.
dump(
v,f,bin
)
is like
f
.write(dumps(
v,bin
)).
If bin is true, dump
uses binary format, so f must be open in
binary mode.
dump(
v,f,bin
)
is also like
Pickler(
f,bin
).dump(
v
).
Read now
Unlock full access