DAGDA SEARCH | Back to results | Support

boost.python / Peek Under the Hood - Python Wiki

Source: https://wiki.python.org/python/implementations/boost.python/PeekUnderTheHood.html

  1. Python Wiki /
  2. Python Wiki /
  3. Python Implementations /
  4. Boost.Python /
  5. boost.python / Peek Under the Hood
View as Markdown

boost.python / Peek Under the Hood

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Dave Abrahams explains:

What happens when you declare a class?

     struct boring {};
     ...etc...
     class_<boring>("boring")
         ;

brief overview of the data structures that are present in the registry

The registry is simple: it’s just a map from typeid -> registration (see boost/python/converter/registrations.hpp). lvalue_chain and rvalue_chain are simple endogenous linked lists.

overview of type conversions from c++ to python and back

Big subject. I suggest some background reading: look for relevant info in the LLNL progress reports and the messages they link to. Also,

from c++ to python

from python to C++

Previousboost.python / Overridable Virtual Functions Next boost.python / Pointers and Smart Pointers