diff options
author | Tim Golden <mail@timgolden.me.uk> | 2014-04-29 15:11:18 (GMT) |
---|---|---|
committer | Tim Golden <mail@timgolden.me.uk> | 2014-04-29 15:11:18 (GMT) |
commit | e9864c5e30f574f599d9c27e5907d1d541ec6e4b (patch) | |
tree | 5a1f6c0f125fa864416b460944db69ec446e1fdb /Doc | |
parent | 3ec903fce4c8f8f97a74b15e8a5f5599da759bc9 (diff) | |
download | cpython-e9864c5e30f574f599d9c27e5907d1d541ec6e4b.zip cpython-e9864c5e30f574f599d9c27e5907d1d541ec6e4b.tar.gz cpython-e9864c5e30f574f599d9c27e5907d1d541ec6e4b.tar.bz2 |
Issue #19630 Emphasise that the file parameter to marshal.dump must be a real file object
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/marshal.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst index f463a7a..f4dfc1f 100644 --- a/Doc/library/marshal.rst +++ b/Doc/library/marshal.rst @@ -66,8 +66,9 @@ The module defines these functions: .. function:: dump(value, file[, version]) Write the value on the open file. The value must be a supported type. The - file must be an open file object such as ``sys.stdout`` or returned by - :func:`open` or :func:`os.popen`. It must be opened in binary mode (``'wb'`` + file must be a open file object such as ``sys.stdout`` or returned by + :func:`open` or :func:`os.popen`. It may not be a wrapper such as + TemporaryFile on Windows. It must be opened in binary mode (``'wb'`` or ``'w+b'``). If the value has (or contains an object that has) an unsupported type, a |