mirror of
https://github.com/boostorg/python.git
synced 2026-01-19 16:32:16 +00:00
41e208ecb598552f6d8c3bf9acacd5611d49a50d
Was missing from https://github.com/boostorg/python/pull/320 I've tested it on one of my projects with (that patch on) Boost.Python/Boost 1.76.0 and it works well. Without that patch, there is a deprecation error.
-fix: issue #239 exec_file does not close the FILE handle. Note: Using FILE* is a bad choice here because of possible exceptions, but Py_RunFile is a C function. This fix works, because Py_RunFile - as a C function - does not throw exceptions.
Synopsis
Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:
- References and Pointers
- Globally Registered Type Coercions
- Automatic Cross-Module Type Conversions
- Efficient Function Overloading
- C++ to Python Exception Translation
- Default Arguments
- Keyword Arguments
- Manipulating Python objects in C++
- Exporting C++ Iterators as Python Iterators
- Documentation Strings
See the Boost.Python documentation for details.
Hint : Check out the development version of the documentation to see work in progress.
Building

While Boost.Python is part of the Boost C++ Libraries super-project, and thus can be compiled as part of Boost, it can also be compiled and installed stand-alone, i.e. against a pre-installed Boost package.
Prerequisites
Build
Run
faber
to build the library.
Test
Run
faber test.report
to run the tests.
Build docs
Run
faber doc.html
to build the documentation.
Description
Languages
C++
87.7%
Python
11.6%
CMake
0.3%
C
0.3%
