<div><h2id="metaprograming"><ahref="#metaprograming"name="metaprograming">#</a>Metaprograming</h2><p><strong>Code that generates code.</strong></p><div><h3id="type-1">Type</h3><p><strong>Type is the root class. If only passed an object it returns its type (class). Otherwise it creates a new class.</strong></p><pre><codeclass="python language-python hljs"><<spanclass="hljs-class"><spanclass="hljs-keyword">class</span>> = <spanclass="hljs-title">type</span><spanclass="hljs-params">(<class_name>, <parents_tuple>, <attributes_dict>)</span>
</span></code></pre></div></div>
<div><h2id="metaprograming"><ahref="#metaprograming"name="metaprograming">#</a>Metaprograming</h2><p><strong>Code that generates code.</strong></p><div><h3id="type-1">Type</h3><p><strong>Type is the root class. If only passed an object it returns its type (class). Otherwise it creates a new class.</strong></p><pre><codeclass="python language-python hljs"><codeclass="python language-python hljs"><class> = type(<class_name>, <parents_tuple>, <attributes_dict>)</code></code></pre></div></div>