> <span
            class="o">=</span> <span class="n">node</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">first</span> <span
            class="o">=</span> <span class="n">node</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">last</span> <span
            class="o">=</span> <span class="n">node</span>
            <span class="k">return</span> <span class="n">node</span>
        <span class="k">elif</span> <span class="n">inlast</