File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1190,7 +1190,7 @@ Pickling support
1190
1190
1191
1191
Python's ``pickle `` module provides a powerful facility to serialize and
1192
1192
de-serialize a Python object graph into a binary data stream. To pickle and
1193
- unpickle C++ classes using pybind11, two additional functions most be provided.
1193
+ unpickle C++ classes using pybind11, two additional functions must be provided.
1194
1194
Suppose the class in question has the following signature:
1195
1195
1196
1196
.. code-block :: cpp
@@ -1243,7 +1243,7 @@ An instance can now be pickled as follows:
1243
1243
1244
1244
p = Pickleable(" test_value" )
1245
1245
p.setExtra(15 )
1246
- data = cPickle .dumps(p, - 1 )
1246
+ data = pickle .dumps(p, - 1 )
1247
1247
1248
1248
Note that only the cPickle module is supported on Python 2.7. It is also
1249
1249
important to request usage of the highest protocol version using the ``-1 ``
You can’t perform that action at this time.
0 commit comments