C ++ Boost Python (Outline)

zhaozj2021-02-08  218

Boost Python Library (Boost.Python)

Outline

Use the Boost Python library to quickly and easily output the C library to Python so that the python interface is very similar to the C interface. This library is designed for minimal influence on your C design. Most cases, you don't You need to be forced to modify your C class so that they can be used with the Boost.Python library. The system will simply reflect your C class and the function '' '' 'to Python. Boost.Python library includes the main features of:

Generate a subclass of extended types in Python override the virtual function [Member] function overloaded digital operator automatic packages and other

Supported platform

Boost.python library has been tested in the following configuration:

Use python2.0 in the compiler / library combination below.

MSVC 6SP4 and Self-belled Library. Metrowerks CodeWarrior Pro6 for Windows Upcoming Version and Self - Bring (The First Version has a deadly BUG for Boost.Python) Intel C 5.0. Compile success but run Because of its exception handling bugs fail. (Failed at runtime) uses Python 1.5.2 in the compiler / library combination below.

MSVC 6SP4 MSVC 6SP4 / Stlport 4.0 GCC 2.95.2 [by Ullrich Koethe] GCC 2.95.2 / Stlport 4.0 Compaq C V6.2-024 for Digital Unix V5.0 Rev. 910 (a Based EDG-based compiler ) And stlport-4.1b3 [Ralf W. Grosse-Kunstleve] Metrowerks CodeWarrior Pro6 for Windows's upcoming version (the first version has a BUG for Boost.Python).

Thank you

David Abrahams initiated and wrote most libraries and continued to coordinate development. Ullrich Koethe has developed a similar system independently. But when he found Boost.Python, he generously contributed to countless hours of code and How to improve the deep insight of it. He is responsible for the support of the function overloaded and writes the technical support part of the reflection C inheritance. He used to improve C and Python's error report, and designed a very easy to use Method to expose digital operators, including an overload to avoid explicit (Translator Note: This is not more intended to express) forced type conversion. Ralf W. Grosse-Kunstleve contributes Pickle Support and many other places Small improvement. He is looking for a method of making multiple modules to be mutually effect. Boost mailing lists and Python associations offer invaluable early feedback. Especially Ron Clarke, Mark Evans, Anton Gluck, Chuck Ingold, Prabhu Ramachandran, and Barry Scott take the brave step in Boost.Python in the early development phase of Boost.Python. If there is no Dragon Systems / Lernout and Hauspie, INC's generous support, Boost.Python is not successful, They support Boost.Python as an open source project.

table of Contents

A brief introduction to the Python Extension module Boost.Python and other Python extensions The relatively simple example of the Other Python extension system Export The overwentable virtual function function overload inherits special methods and operators support insider to generate an extension module Pickle support cross-extension Dependent package enumeration pointer and smart pointer internal data structure between modules

Document is currently underway; all assistance will be greatly grateful! At the same time, the useful example of each characteristic of Boost.Python is in the regression test file test / comprehensive. [Py / HPP / CPP] It should be obvious. Please send a list of Boost mailing.

© David Abrahams 2001 All rights reserved. This document allows copy, use, modification, sale, and distribution, premise this copyright statement must appear on all copies. The provision of this document does not assume any direct or implicit guarantees, and does not make the statement that is suitable for any purpose.

Update Date: March 6, 2001

转载请注明原文地址:https://www.9cbs.com/read-2321.html

New Post(0)