@@ -141,7 +141,7 @@ an unpickler, then you call the unpickler's :meth:`load` method. The
141
141
The :mod: `pickle ` module provides the following functions to make the pickling
142
142
process more convenient:
143
143
144
- .. function :: dump(obj, file[ , protocol, \*, fix_imports=True] )
144
+ .. function :: dump(obj, file, protocol=None , \*, fix_imports=True)
145
145
146
146
Write a pickled representation of *obj * to the open file object *file *. This
147
147
is equivalent to ``Pickler(file, protocol).dump(obj) ``.
@@ -162,7 +162,7 @@ process more convenient:
162
162
map the new Python 3.x names to the old module names used in Python 2.x,
163
163
so that the pickle data stream is readable with Python 2.x.
164
164
165
- .. function :: dumps(obj[ , protocol, \*, fix_imports=True] )
165
+ .. function :: dumps(obj, protocol=None , \*, fix_imports=True)
166
166
167
167
Return the pickled representation of the object as a :class: `bytes `
168
168
object, instead of writing it to a file.
@@ -179,7 +179,7 @@ process more convenient:
179
179
map the new Python 3.x names to the old module names used in Python 2.x,
180
180
so that the pickle data stream is readable with Python 2.x.
181
181
182
- .. function :: load(file, [ \*, fix_imports=True, encoding="ASCII", errors="strict"] )
182
+ .. function :: load(file, \*, fix_imports=True, encoding="ASCII", errors="strict")
183
183
184
184
Read a pickled object representation from the open file object *file * and
185
185
return the reconstituted object hierarchy specified therein. This is
@@ -202,7 +202,7 @@ process more convenient:
202
202
*errors * tell pickle how to decode 8-bit string instances pickled by Python
203
203
2.x; these default to 'ASCII' and 'strict', respectively.
204
204
205
- .. function :: loads(bytes_object, [ \*, fix_imports=True, encoding="ASCII", errors="strict"] )
205
+ .. function :: loads(bytes_object, \*, fix_imports=True, encoding="ASCII", errors="strict")
206
206
207
207
Read a pickled object hierarchy from a :class: `bytes ` object and return the
208
208
reconstituted object hierarchy specified therein
@@ -247,7 +247,7 @@ The :mod:`pickle` module defines three exceptions:
247
247
The :mod: `pickle ` module exports two classes, :class: `Pickler ` and
248
248
:class: `Unpickler `:
249
249
250
- .. class :: Pickler(file[ , protocol, \*, fix_imports=True] )
250
+ .. class :: Pickler(file, protocol=None , \*, fix_imports=True)
251
251
252
252
This takes a binary file for writing a pickle data stream.
253
253
@@ -295,7 +295,7 @@ The :mod:`pickle` module exports two classes, :class:`Pickler` and
295
295
Use :func: `pickletools.optimize ` if you need more compact pickles.
296
296
297
297
298
- .. class :: Unpickler(file, [ \*, fix_imports=True, encoding="ASCII", errors="strict"] )
298
+ .. class :: Unpickler(file, \*, fix_imports=True, encoding="ASCII", errors="strict")
299
299
300
300
This takes a binary file for reading a pickle data stream.
301
301
0 commit comments