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
1ee4128c
Commit
1ee4128c
authored
Sep 21, 2016
by
Wenzel Jakob
Committed by
GitHub
Sep 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #420 from jagerman/doc-typos
Fix minor documentation spelling mistakes
parents
d4285a6d
20ef6265
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
docs/advanced.rst
+3
-3
docs/faq.rst
+2
-2
No files found.
docs/advanced.rst
View file @
1ee4128c
...
@@ -540,7 +540,7 @@ pybind11 provides a few convenience macros such as
...
@@ -540,7 +540,7 @@ pybind11 provides a few convenience macros such as
in the preprocessor (which has no concept of types), they *will* get confused
in the preprocessor (which has no concept of types), they *will* get confused
by commas in a template argument such as ``PYBIND11_OVERLOAD(MyReturnValue<T1,
by commas in a template argument such as ``PYBIND11_OVERLOAD(MyReturnValue<T1,
T2>, myFunc)``. In this case, the preprocessor assumes that the comma indicates
T2>, myFunc)``. In this case, the preprocessor assumes that the comma indicates
the beginn
n
ing of the next parameter. Use a ``typedef`` to bind the template to
the beginning of the next parameter. Use a ``typedef`` to bind the template to
another name and use it in the macro to avoid this problem.
another name and use it in the macro to avoid this problem.
...
@@ -670,7 +670,7 @@ functions:
...
@@ -670,7 +670,7 @@ functions:
.def_readwrite("contents", &MyClass::contents);
.def_readwrite("contents", &MyClass::contents);
In this case, properties can be read and written in their entirety. However, an
In this case, properties can be read and written in their entirety. However, an
``append`` operaton involving such a list type has no effect:
``append`` operat
i
on involving such a list type has no effect:
.. code-block:: pycon
.. code-block:: pycon
...
@@ -1524,7 +1524,7 @@ or ``py::array::f_style``.
...
@@ -1524,7 +1524,7 @@ or ``py::array::f_style``.
void f(py::array_t<double, py::array::c_style | py::array::forcecast> array);
void f(py::array_t<double, py::array::c_style | py::array::forcecast> array);
The ``py::array::forcecast`` argument is the default value of the second
The ``py::array::forcecast`` argument is the default value of the second
template parame
n
ter, and it ensures that non-conforming arguments are converted
template parameter, and it ensures that non-conforming arguments are converted
into an array satisfying the specified requirements instead of trying the next
into an array satisfying the specified requirements instead of trying the next
function overload.
function overload.
...
...
docs/faq.rst
View file @
1ee4128c
...
@@ -121,7 +121,7 @@ can be compiled independently from another. Following this approach will
...
@@ -121,7 +121,7 @@ can be compiled independently from another. Following this approach will
2. enable parallel builds (if desired).
2. enable parallel builds (if desired).
3. allow for faster incremental builds. For instance, when a single class
3. allow for faster incremental builds. For instance, when a single class
definiton is changed, only a subset of the binding code will generally need
definit
i
on is changed, only a subset of the binding code will generally need
to be recompiled.
to be recompiled.
How can I create smaller binaries?
How can I create smaller binaries?
...
@@ -131,7 +131,7 @@ To do its job, pybind11 extensively relies on a programming technique known as
...
@@ -131,7 +131,7 @@ To do its job, pybind11 extensively relies on a programming technique known as
*template metaprogramming*, which is a way of performing computation at compile
*template metaprogramming*, which is a way of performing computation at compile
time using type information. Template metaprogamming usually instantiates code
time using type information. Template metaprogamming usually instantiates code
involving significant numbers of deeply nested types that are either completely
involving significant numbers of deeply nested types that are either completely
removed or reduced to just a few instrutions during the compiler's optimization
removed or reduced to just a few instru
c
tions during the compiler's optimization
phase. However, due to the nested nature of these types, the resulting symbol
phase. However, due to the nested nature of these types, the resulting symbol
names in the compiled extension library can be extremely long. For instance,
names in the compiled extension library can be extremely long. For instance,
the included test suite contains the following symbol:
the included test suite contains the following symbol:
...
...
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