Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
3d0e6fff
Commit
3d0e6fff
authored
Apr 13, 2016
by
Wenzel Jakob
Browse files
typos
parent
1c329aab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/advanced.rst
docs/advanced.rst
+2
-2
No files found.
docs/advanced.rst
View file @
3d0e6fff
...
...
@@ -1190,7 +1190,7 @@ Pickling support
Python's ``pickle`` module provides a powerful facility to serialize and
de-serialize a Python object graph into a binary data stream. To pickle and
unpickle C++ classes using pybind11, two additional functions m
o
st be provided.
unpickle C++ classes using pybind11, two additional functions m
u
st be provided.
Suppose the class in question has the following signature:
.. code-block:: cpp
...
...
@@ -1243,7 +1243,7 @@ An instance can now be pickled as follows:
p = Pickleable("test_value")
p.setExtra(15)
data =
cP
ickle.dumps(p, -1)
data =
p
ickle.dumps(p, -1)
Note that only the cPickle module is supported on Python 2.7. It is also
important to request usage of the highest protocol version using the ``-1``
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment