[ python-Bugs-891249 ] pickle dump argument description vague
SourceForge.net
noreply at sourceforge.net
Sun Nov 7 20:13:40 CET 2004
Bugs item #891249, was opened at 2004-02-05 20:08
Message generated for change (Comment added) made by irmen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=891249&group_id=5470
Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Brad Clements (bkc)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: pickle dump argument description vague
Initial Comment:
The documentation for pickle.dump()
see http://www.python.org/doc/current/lib/node64.html
dump( object, file[, protocol[, bin]])
implies that up to four arguments can be specified.
That bin can be specified if protocol has been
specified. The implementation actually accepts only 3
arguments, the last one being either 'protocol' or a
'bin' flag.
The text notation for this function needs to be
clarified, and the visual presentation of the argument
functions changed.
Perhaps to:
dump( object, file[, protocol | bin])
or
dump( object, file[, protocol] | [, bin])
or
dump( object, file[, protocol_or_bin])
----------------------------------------------------------------------
Comment By: Irmen de Jong (irmen)
Date: 2004-11-07 20:13
Message:
Logged In: YES
user_id=129426
There is one other thing.
The cPickle dump/dumps functions don't like the 'bin'
argument at all:
TypeError: 'bin' is an invalid keyword argument for this
function
They only accept the 'protocol' argument.
So that's another thing that should probably be changed in
cPickle (also see bug 888594), or it should probably be
mentioned in the docs, or the 'bin' argument should be
removed totally ;-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=891249&group_id=5470
More information about the Python-bugs-list
mailing list