title: error to append integer in c++ boost python list
body: <p>I maked this code and it does not work</p>
  
  <pre><code>#include &lt;boost/python.hpp&gt;
  
  namespace bp = boost::python;
  
  int main(int argc, char **argv) {
  
  bp::list points;
  
  int one = 1;
  int two = 2;
  int three = 3;
  points.append(one); #crach!!
  points.append(two);
  points.append(three);
  
  return 0;}
  </code></pre>
  
  <p>which is the reason why "append" does not accept integers and directly which would be the correct way?</p>
  
  <p><strong>edited</strong></p>
  
  <p>the solution is this:</p>
  
  <pre><code>#include &lt;boost/python.hpp&gt;
  
  namespace bp = boost::python;
  
  int main(int argc, char **argv) {
      Py_Initialize(); //this part
  bp::list points;
  
  int one = 1;
  int two = 2;
  int three = 3;
  points.append(one); #crach!!
  points.append(two);
  points.append(three);
      Py_Finalize(); //this part
  return 0;}
  </code></pre>