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
7641c1dd
Commit
7641c1dd
authored
Oct 18, 2015
by
Wenzel Jakob
Browse files
minor doc update
parent
10e62e16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
README.md
README.md
+7
-6
docs/index.rst
docs/index.rst
+2
-2
docs/intro.rst
docs/intro.rst
+7
-5
No files found.
README.md
View file @
7641c1dd
...
...
@@ -5,7 +5,7 @@
[

](https://travis-ci.org/wjakob/pybind11)
[

](http://pybind11.readthedocs.org/en/latest/?badge=latest)
**pybind11**
is a lightweight header library that exposes C++ types in Python
**pybind11**
is a lightweight header
-only
library that exposes C++ types in Python
and vice versa, mainly to create Python bindings of existing C++ code. Its
goals and syntax are similar to the excellent
[
Boost.Python
](
http://www.boost.org/doc/libs/1_58_0/libs/python/doc/
)
library
...
...
@@ -21,10 +21,10 @@ C++11-compatible compilers are widely available, this heavy machinery has
become an excessively large and unnecessary dependency.
Think of this library as a tiny self-contained version of Boost.Python with
everything stripped away that isn't relevant for binding generation. The
whol
e
codebase requires less than 3000
lines of code and
only
depend
s
on Python (2.7
or 3.x)
and the C++ standard library. This compact implementation was possible
thanks
to some of the new C++11 language features (tuples, lambda functions and
everything stripped away that isn't relevant for binding generation. The
cor
e
header files only require ~2K
lines of code and depend on Python (2.7
or 3.x)
and the C++ standard library. This compact implementation was possible
thanks
to some of the new C++11 language features (tuples, lambda functions and
variadic templates). Since its creation, this library has grown beyond
Boost.Python in many ways, leading to dramatically simpler binding code in many
common situations.
...
...
@@ -67,4 +67,5 @@ In addition to the core functionality, pybind11 provides some extra goodies:
-
Python's slice-based access and assignment operations can be supported with
just a few lines of code.
-
Everything is contained in just a few header files; there no need to link
against any additional libraries.
docs/index.rst
View file @
7641c1dd
Welcome to pybind11's documentati
on
!
====================================
pybind11 --- Seamless operability between C++11 and Pyth
on
====================================
======================
Contents:
...
...
docs/intro.rst
View file @
7641c1dd
About this project
==================
**pybind11** is a lightweight header library that exposes C++ types in Python
**pybind11** is a lightweight header
-only
library that exposes C++ types in Python
and vice versa, mainly to create Python bindings of existing C++ code. Its
goals and syntax are similar to the excellent `Boost.Python`_ library by David
Abrahams: to minimize boilerplate code in traditional extension modules by
...
...
@@ -17,10 +17,10 @@ C++11-compatible compilers are widely available, this heavy machinery has
become an excessively large and unnecessary dependency.
Think of this library as a tiny self-contained version of Boost.Python with
everything stripped away that isn't relevant for binding generation. The
whol
e
codebase requires less than 3000
lines of code and
only
depend
s
on Python (2.7
or 3.x)
and the C++ standard library. This compact implementation was possible
thanks
to some of the new C++11 language features (tuples, lambda functions and
everything stripped away that isn't relevant for binding generation. The
cor
e
header files only require ~2K
lines of code and depend on Python (2.7
or 3.x)
and the C++ standard library. This compact implementation was possible
thanks
to some of the new C++11 language features (tuples, lambda functions and
variadic templates). Since its creation, this library has grown beyond
Boost.Python in many ways, leading to dramatically simpler binding code in many
common situations.
...
...
@@ -62,3 +62,5 @@ In addition to the core functionality, pybind11 provides some extra goodies:
- Python's slice-based access and assignment operations can be supported with
just a few lines of code.
- Everything is contained in just a few header files; there no need to link
against any additional libraries.
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