MCPcopy Index your code
hub / github.com/python/cpython / dump

Function dump

Lib/plistlib.py:921–931  ·  view source on GitHub ↗

Write 'value' to a .plist file. 'fp' should be a writable, binary file object.

(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False,
         aware_datetime=False)

Source from the content-addressed store, hash-verified

919
920
921def dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False,
922 aware_datetime=False):
923 """Write 'value' to a .plist file. 'fp' should be a writable,
924 binary file object.
925 """
926 if fmt not in _FORMATS:
927 raise ValueError("Unsupported format: %r"%(fmt,))
928
929 writer = _FORMATS[fmt]["writer"](fp, sort_keys=sort_keys, skipkeys=skipkeys,
930 aware_datetime=aware_datetime)
931 writer.write(value)
932
933
934def dumps(value, *, fmt=FMT_XML, skipkeys=False, sort_keys=True,

Callers 2

writePlistFunction · 0.90
dumpsFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…