2015:integrating_python_and_c_with_boost.python
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 2015:integrating_python_and_c_with_boost.python [2014/10/29 13:44] – created jonjagger | 2015:integrating_python_and_c_with_boost.python [2016/06/11 14:05] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| complement one another well: Python is high-level, dynamic, and easy to use while C++ is at-the-metal, | complement one another well: Python is high-level, dynamic, and easy to use while C++ is at-the-metal, | ||
| static, and (in)famously tricky. There are times when there are real advantages to combining these | static, and (in)famously tricky. There are times when there are real advantages to combining these | ||
| - | disparate natures, and Python’s C API provides a strong interface for doing just that. Boost.Python is a | + | disparate natures, and Python's C API provides a strong interface for doing just that. Boost.Python is a |
| - | C++ library that builds upon and improves Python’s C API to give users a simpler, more intuitive, and safer | + | C++ library that builds upon and improves Python's C API to give users a simpler, more intuitive, and safer |
| - | means to integrate Python and C++. | + | means to integrate Python and C++.\\ |
| \\ | \\ | ||
| - | In this tutorial we’ll look at how to use Boost.Python to effectively bridge the Python/C++ boundary. | + | In this tutorial we'll look at how to use Boost.Python to effectively bridge the Python/C++ boundary. |
| - | We’ll start by briefly looking at the fundamentals of the Python C API since that defines the “ground | + | We'll start by briefly looking at the fundamentals of the Python C API since that defines the 'ground |
| - | rules”; this includes things like reference counting, the basic object model, and so forth. We’ll then | + | rules'; this includes things like reference counting, the basic object model, and so forth. We'll then |
| quickly look at the Boost.Python API and show how it provides the same functionality as the underlying C | quickly look at the Boost.Python API and show how it provides the same functionality as the underlying C | ||
| - | API, but does so in a way that doesn’t obscure the real semantics of the Python language. | + | API, but does so in a way that doesn't obscure the real semantics of the Python language.\\ |
| \\ | \\ | ||
| After this introduction, | After this introduction, | ||
| - | Boost.Python. We’ll focus on techniques for extending Python with C++, that is, writing Python modules | + | Boost.Python. We'll focus on techniques for extending Python with C++, that is, writing Python modules |
| in C++. Boost.Python can be used for embedding (i.e. invoking Python code from C++), but that involves a | in C++. Boost.Python can be used for embedding (i.e. invoking Python code from C++), but that involves a | ||
| different set of techniques, and in practice most scientific Python developers are more interested in | different set of techniques, and in practice most scientific Python developers are more interested in | ||
| Line 26: | Line 26: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | \\ | + | JJ: Proposed as 1/2 day workshop - have emailed to ask if he meant all day\\ |
2015/integrating_python_and_c_with_boost.python.1414590264.txt.gz · Last modified: 2016/06/11 14:05 (external edit)
