title: How to add member to embedded class in run time by boost python?
body: <p>I'm using boost python to bind c++ and python.</p>
  
  <p>I want to make custom data type in run time.</p>
  
  <p>For example this is excel file which include my new custom type infos.</p>
  
  <p>Rectangle.xls</p>
  
  <p><a href="https://i.stack.imgur.com/FGNCl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FGNCl.png" alt="enter image description here"></a></p>
  
  <p>And i will read this excel file first and make new Rectangle type.
  And i want to add this custom type to with c++ boost python in run time.</p>
  
  <p>In c++ side, BOOST_PYTHON_MODULE macro will make functions.</p>
  
  <pre><code>BOOST_PYTHON_MODULE(HelloModule)
  {
   python::class_&lt;Temp&gt; temp;
   temp.def(init&lt;int&gt;());
  }
  </code></pre>
  
  <p>And i can bind like this.</p>
  
  <pre><code>PyImport_AppendInittab("HelloModule", &amp;initHelloModule);
  </code></pre>
  
  <p>Boost python will bind this at run time but it can not edit at run time.
  It can edit only when the coding time.
  Is there have any boost python interface or way to make or import custom type in runtime?</p>