Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
3d0e6fff
Commit
3d0e6fff
authored
Apr 13, 2016
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos
parent
1c329aab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/advanced.rst
+2
-2
No files found.
docs/advanced.rst
View file @
3d0e6fff
...
@@ -1190,7 +1190,7 @@ Pickling support
...
@@ -1190,7 +1190,7 @@ Pickling support
Python's ``pickle`` module provides a powerful facility to serialize and
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
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:
Suppose the class in question has the following signature:
.. code-block:: cpp
.. code-block:: cpp
...
@@ -1243,7 +1243,7 @@ An instance can now be pickled as follows:
...
@@ -1243,7 +1243,7 @@ An instance can now be pickled as follows:
p = Pickleable("test_value")
p = Pickleable("test_value")
p.setExtra(15)
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
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``
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