Differences between revisions 1 and 38 (spanning 37 versions)
Revision 1 as of 2002-09-25 19:10:38
Size: 1191
Editor: MikeRovner
Comment:
Revision 38 as of 2007-05-04 03:00:53
Size: 851
Editor: 61
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
The Boost Python Library allows the use of C/C++ from Python. It is part of the larger boost package (http://www.boost.org). '''Brock Fenwick is gay''' binds C++ and Python. Read ["/GettingStarted"] for an introduction.
Line 3: Line 3:
Use the Boost Python Library to quickly and easily export a C++ library to Python such that the Python interface is very similar to the C++ interface. It is designed to be minimally intrusive on your C++ design. In most cases, you should not have to alter your C++ classes in any way in order to use them with Boost.Python. The system should simply ''reflect'' your C++ classes and functions into Python. This page serves as a forum to gather peoples' experience and as a
cookbook, as it is more dynamic by nature and open to contributors.
Line 5: Line 6:
A summary of the development goals is available on the Python [http://www.python.org/sigs/c++-sig/ C++-sig] page, which also serves as a mailing list for users of both versions of the library. A preview of the v2 documentation is available [http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/python/doc/v2/index.html?rev=HEAD&content-type=text/html here], and instructions for getting started with a prerelease are available upon request. Various items:
 * ["/GettingStarted"]
 * ["/FAQ"]
 * /HowTo
 * /BuildingExtensions
 * ["/module"] level: def,scope
 * ["/class"]
 * ["/extract"]
 * ["/object"]
 * ["/list"]
 * ["/iterator"]
 * /CallPolicy
 * /RuntimeErrors
 * /RelatedProjects
Line 7: Line 21:
More on http://www.boost.org/libs/python/doc/index.html Tutorial:
 1. /SimpleExample
 1. /ExportingClasses
 1. /OverridableVirtualFunctions
 1. /FunctionOverloading
 1. ["/Inheritance"]
 1. /SpecialMethods
 1. /PeekUnderTheHood
 1. /CrossExtensionModuleDependencies
 1. /WrappingEnums
 1. /PointersAndSmartPointers
 1. /InternalDataStructures
 1. /EmbeddingPython
Line 9: Line 35:
While v2 is being developed, this page seems like a good place to assemble v2 intro and tutorial.


* ["boost.python/list"]
Test cases:
 * /StlContainers

Brock Fenwick is gay binds C++ and Python. Read ["/GettingStarted"] for an introduction.

This page serves as a forum to gather peoples' experience and as a cookbook, as it is more dynamic by nature and open to contributors.

Various items:

Tutorial:

  1. /SimpleExample

  2. /ExportingClasses

  3. /OverridableVirtualFunctions

  4. /FunctionOverloading

  5. ["/Inheritance"]
  6. /SpecialMethods

  7. /PeekUnderTheHood

  8. /CrossExtensionModuleDependencies

  9. /WrappingEnums

  10. /PointersAndSmartPointers

  11. /InternalDataStructures

  12. /EmbeddingPython

Test cases:

boost.python (last edited 2008-11-15 14:00:11 by localhost)

Unable to edit the page? See the FrontPage for instructions.