@@ -141,7 +141,7 @@ an unpickler, then you call the unpickler's :meth:`load` method. The
141141The :mod: `pickle ` module provides the following functions to make the pickling
142142process more convenient:
143143
144- .. function :: dump(obj, file[ , protocol, \*, fix_imports=True] )
144+ .. function :: dump(obj, file, protocol=None , \*, fix_imports=True)
145145
146146 Write a pickled representation of *obj * to the open file object *file *. This
147147 is equivalent to ``Pickler(file, protocol).dump(obj) ``.
@@ -162,7 +162,7 @@ process more convenient:
162162 map the new Python 3.x names to the old module names used in Python 2.x,
163163 so that the pickle data stream is readable with Python 2.x.
164164
165- .. function :: dumps(obj[ , protocol, \*, fix_imports=True] )
165+ .. function :: dumps(obj, protocol=None , \*, fix_imports=True)
166166
167167 Return the pickled representation of the object as a :class: `bytes `
168168 object, instead of writing it to a file.
@@ -179,7 +179,7 @@ process more convenient:
179179 map the new Python 3.x names to the old module names used in Python 2.x,
180180 so that the pickle data stream is readable with Python 2.x.
181181
182- .. function :: load(file, [ \*, fix_imports=True, encoding="ASCII", errors="strict"] )
182+ .. function :: load(file, \*, fix_imports=True, encoding="ASCII", errors="strict")
183183
184184 Read a pickled object representation from the open file object *file * and
185185 return the reconstituted object hierarchy specified therein. This is
@@ -202,7 +202,7 @@ process more convenient:
202202 *errors * tell pickle how to decode 8-bit string instances pickled by Python
203203 2.x; these default to 'ASCII' and 'strict', respectively.
204204
205- .. function :: loads(bytes_object, [ \*, fix_imports=True, encoding="ASCII", errors="strict"] )
205+ .. function :: loads(bytes_object, \*, fix_imports=True, encoding="ASCII", errors="strict")
206206
207207 Read a pickled object hierarchy from a :class: `bytes ` object and return the
208208 reconstituted object hierarchy specified therein
@@ -247,7 +247,7 @@ The :mod:`pickle` module defines three exceptions:
247247The :mod: `pickle ` module exports two classes, :class: `Pickler ` and
248248:class: `Unpickler `:
249249
250- .. class :: Pickler(file[ , protocol, \*, fix_imports=True] )
250+ .. class :: Pickler(file, protocol=None , \*, fix_imports=True)
251251
252252 This takes a binary file for writing a pickle data stream.
253253
@@ -295,7 +295,7 @@ The :mod:`pickle` module exports two classes, :class:`Pickler` and
295295 Use :func: `pickletools.optimize ` if you need more compact pickles.
296296
297297
298- .. class :: Unpickler(file, [ \*, fix_imports=True, encoding="ASCII", errors="strict"] )
298+ .. class :: Unpickler(file, \*, fix_imports=True, encoding="ASCII", errors="strict")
299299
300300 This takes a binary file for reading a pickle data stream.
301301
0 commit comments