首页 > 代码库 > 笔记 Integrating Python and C++ with Boost Python part 1 | SciPy 2014 | Austin Bingham

笔记 Integrating Python and C++ with Boost Python part 1 | SciPy 2014 | Austin Bingham

https://www.youtube.com/watch?v=GE8EsGUsC2w

python c api

pyerr_setstring

boost

register_exception_translator

handy debugging tip

boost::python::throw_error_already_set(), set breakpoint here

 

https://bitbucket.org/sixty-north/scipy2014_boost_python_workshop_student_material/src

 

simply expose c++ function to python

boost::python::def

笔记 Integrating Python and C++ with Boost Python part 1 | SciPy 2014 | Austin Bingham