pan></span><span class="gp">&gt;&gt;&gt; </span><span class="n">model</span> <span class="o">=</span> <span class="n">Model</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">isetattr</span><span class="p">(</span><span class="n">model</span><span class="p">,</span> <span class="s2">&quot;weight[2]&quot;</span><span class="p">,</span> <span class="n">new_weight</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object 