File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,18 +194,18 @@ process more convenient:
194194
195195.. function :: dumps(obj[, protocol])
196196
197- Return the pickled representation of the object as a string, instead of writing
198- it to a file.
197+ Return the pickled representation of the object as a :class: ` bytes `
198+ object, instead of writing it to a file.
199199
200200 If the *protocol * parameter is omitted, protocol 3 is used. If *protocol *
201201 is specified as a negative value or :const: `HIGHEST_PROTOCOL `, the highest
202202 protocol version will be used.
203203
204204
205- .. function :: loads(string )
205+ .. function :: loads(bytes_object )
206206
207- Read a pickled object hierarchy from a string. Characters in the string past
208- the pickled object's representation are ignored.
207+ Read a pickled object hierarchy from a :class: ` bytes ` object.
208+ Bytes past the pickled object's representation are ignored.
209209
210210The :mod: `pickle ` module also defines three exceptions:
211211
You can’t perform that action at this time.
0 commit comments