Differences between revisions 30 and 31
Revision 30 as of 2004-05-20 23:31:03
Size: 1495
Editor: 198
Comment: moved intro to subpage
Revision 31 as of 2004-05-20 23:33:38
Size: 775
Editor: 198
Comment: moved Abrahams comment to subpage
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
See ["/Introduction"] for an introduction to Boost::Python. See ["/GettingStarted"] for an introduction to Boost::Python.
Line 7: Line 7:
 * ["/Introduction"]  * ["/GettingStarted"]
Line 35: Line 35:

----
From DavidAbrahams:

Boost.Python is designed with the idea in mind that users never touch a Py``Object*.

Boost.Python depends on quite a few of the other boost libraries (possibly a few others):
 * type_traits
 * bind
 * function
 * mpl
 * smart_ptr

IIUC, ["weave"] can be used for embedding nontrivial C++ code, if you're
willing to stick it all inside one function body. Furthermore, tools like
weave.blitz() can make an enormous difference by compiling an entire C++
expression template corresponding to an arbitrarily complicated Python
expression. Surely that's nontrivial. It's definitely ''cool''. I think weave
offers enormous power to the person who's programming mostly in Python.

See ["/GettingStarted"] for an introduction to Boost::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.

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

Test cases:

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

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