title: How can I use Boost::Python to add a method to an exported class without modifying the base class?
body: <p>I have a class in C++ that I can't modify.  However, that class holds an std::list&lt;> of items that I need to be able to access in a Python extension.  Since Boost::Python doesn't seem to have a built-in conversion between an std::list and a Python list, I was hoping to be able to write a method in C++ that could do this conversion for me and later, when I am mapping the C++ classes to Python classes, I could attach this method.</p>
  
  <p>I would prefer if I could just call the method like</p>
  
  <pre><code>baseClassInstance.get_std_list_of_items_as_python_list()
  </code></pre>