From: Tim Golden Date: Tue, 29 Apr 2014 15:11:18 +0000 (+0100) Subject: Issue #19630 Emphasise that the file parameter to marshal.dump must be a real file... X-Git-Tag: v2.7.7rc1~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9864c5e30f574f599d9c27e5907d1d541ec6e4b;p=thirdparty%2FPython%2Fcpython.git Issue #19630 Emphasise that the file parameter to marshal.dump must be a real file object --- diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst index f463a7a133da..f4dfc1f04ff7 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