[Python-checkins] cpython (2.7): Issue #19630 Emphasise that the file parameter to marshal.dump must be a real

tim.golden python-checkins at python.org
Tue Apr 29 17:11:33 CEST 2014


http://hg.python.org/cpython/rev/0f6bdc2b0e38
changeset:   90517:0f6bdc2b0e38
branch:      2.7
parent:      90512:8ee76e1b5aa6
user:        Tim Golden <mail at timgolden.me.uk>
date:        Tue Apr 29 16:11:18 2014 +0100
summary:
  Issue #19630 Emphasise that the file parameter to marshal.dump must be a real file object

files:
  Doc/library/marshal.rst |  5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst
--- a/Doc/library/marshal.rst
+++ b/Doc/library/marshal.rst
@@ -66,8 +66,9 @@
 .. 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list