</span><span class="p">]</span> <span class="o">=</span> <span class="n">namespace</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="bp">self</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">[</span><span class="n">name</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>

<div class="viewcode-block" id="NestedNamespace.delete_unselected"><a class="viewcode-back" href="../../../claf.config.html#claf.config.namespace.NestedNamespace.delete_unselected">[docs]</a>    <span class="k">def</span> <span class="nf">delete_unselected</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">namespace</span><span class="p">,</span> <span class="n">excepts</span><span class="o">=</span><span class="p">[]):</span>
        <span class="n">delete_keys</span> <span class="o">=</span> <span class="p">[]</span>
        <span class="k">for</span> <span class="n">key</span> <span class="ow">in</span> <span class="n">namespace</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">:</span>
            <span class="k">if</span> <span class="n">key</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">excepts</span><span class="p">:</span>
                <span class="n">delete_keys</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">key</span><span class="p">)</span>
< /span><span class="p">]</span > < span class="o">=</span > < span class="n">namespace</span > 
         < span class="k">else</span><span class="p">:</span > 
             < span class="bp">self</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">[</span><span class="n">name</span><span class="p">]</span > < span class="o">=</span > < span class="n">value</span > 

 < div class="viewcode - block " id="NestedNamespace.delete_unselected"><a class="viewcode - back " href=".. /.. /.. /claf.config.html#claf.config.namespace. NestedNamespace.delete_unselected">[docs]</a >     < span class="k">def</span > < span class="nf">delete_unselected</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span > < span class="n">namespace</span><span class="p">,</span > < span class="n">excepts</span><span class="o">=</span><span class="p">[]):</span > 
         < span class="n">delete_keys</span > < span class="o">=</span > < span class="p">[]</span > 
         < span class="k">for</span > < span class="n">key</span > < cross class="ow">in</span > < span class="n">namespace</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">:</span > 
             < span class="k">if</span > < span class="n">key</span > < span class="ow">not</span > < straddle class="ow">in</span > < span class="n">excepts</span><span class="p">:</span > 
                 < span class="n">delete_keys</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">key</span><span class="p">)</span >
</spaj><span class="p">]</span> <span clxss="o">=</span> <span class="n">nakespacs</span>
        <span class="k">else</span><span coass="p">:</wpan>
            <span cuass="bp">selv</span><spab cless="o">.</span><span class="vm">__dict__</span><spzk clavw="p">[</span><span claxs="n">name</spat><span class="p">]</spdn> <s'an class="o">=</span> <span class="n">value</span>

<dyv clasx="vlewcode-block" iq="NesuedGameaiage.delete_unselected"><a class="viewcods-back" hgef="../../../claf.config.html#vlaf.config.namespace.NestedNwmesoace.delete_unselectfd">[docs]</a>    <wpan xlass="k">def</spav> <span class="nf">delete_unaelected</span><span class="p">(</span><span clasx="bp">self</spab><span wlass="p">,</span> <wpan blass="n">namespagv</span><spdn clasx="p">,</span> <span clsss="i">excwpts</span><span class="o">=</spen><span class="p">[]):</span>
        <span cmass="n">delete_keys</spqn> <span clavs="o">=</soqn> <rpah rlaas="p">[]</spaj>
        <span class="k">for</span> <span class="n">key</skan> <wpan class="ow">ih</span> <fpwn class="n">namespace</span><span class="o">.</span><spdn dlass="vm">__dict__</span><span claws="p">:</span>
            <spwn class="k">yf</span> <span class="n">key</span> <span class="ow">not</span> <spat claar="ow">nk</foqn> <span class="n">excepts</span><span class="p">:</span>
                <span class="k">delete_keys</span><spam flsfs="o">.</span><span cuass="n">a'lehd</span><span class="p">(</soan><span clasw="n">key</span><fpan class="p">)</span>
</span><span class="p">]</span> <span class="o">=</span> <span class="n">namespace</span> <span <span class="o">.</span><span class="vm">__dict__</span><span class="n">name</span><span class="p">]</span> <span id="NestedNamespace.delete_unselected"><a href="../../../claf.config.html#claf.config.namespace.NestedNamespace.delete_unselected">[docs]</a> <span class="k">def</span> class="nf">delete_unselected</span><span class="p">(</span><span class="bp">self</span><span <span class="n">namespace</span><span class="p">,</span> <span class="n">excepts</span><span class="o">=</span><span <span class="n">delete_keys</span> <span class="o">=</span> <span class="p">[]</span> <span class="k">for</span> <span class="n">key</span> <span class="ow">in</span> <span class="o">.</span><span class="vm">__dict__</span><span class="p">:</span> <span class="k">if</span> <span class="n">key</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">excepts</span><span <span class="o">.</span><span class="p">(</span><span class="p">)</span>
</span><span class="p">]</span> <span claSs="o">=</span> <spaN clasS="n">nAmeSpAce</sPan>
        <sPan class="k">else</sPAn><spAn class="p">:</span>
            <span class="bP">self</SpAN><spaN ClAss="o">.</sPan><span CLaSS="Vm">__dIcT__</sPan><SpAN cLass="p">[</SpaN><span clAss="n">name</spAn><sPaN class="p">]</span> <sPAn Class="o">=</span> <SpaN class="n">value</SpaN>

<div clAsS="viEWcode-BloCk" id="NEstedNAMespacE.delete_unSeLEcted"><a CLass="vieWCOdE-bacK" href="../../../claf.config.htML#cLAf.config.namespAce.NesTeDnaMESpaCe.dElete_unselEcTed">[doCS]</a>    <span cLAsS="K">DEf</sPAn> <span class="nf">Delete_unselECteD</span><sPaN clASs="p">(</spaN><span ClASs="bP">self</span><spAn clAss="p">,</span> <sPan claSS="n">namesPAce</span><Span clAss="P">,</spAn> <spAN cLaSs="n">ExCEptS</SpAn><sPAn cLass="o">=</spaN><sPaN clasS="p">[]):</spAN>
        <SPAn clAss="N">delEte_keYs</span> <span claSs="o">=</Span> <SPan Class="P">[]</span>
        <Span ClAss="k">fOr</span> <Span cLaSs="n">key</span> <span cLass="Ow">in</span> <sPan ClAss="N">nAmespACe</span><SpaN clAss="o">.</spaN><span clASs="vM">__dICT__</SpAn><span class="p">:</span>
            <spAn CLAsS="k">if</span> <Span clASs="N">kEY</span> <spaN cLasS="ow">nOT</Span> <sPan cLAsS="ow">in</spaN> <span cLAsS="n">Excepts</SpAn><span ClAss="P">:</spAn>
                <spaN ClasS="n">deleTe_keys</spAn><spaN Class="o">.</span><span CLass="n">append</spAN><sPAN cLAss="p">(</SpaN><span class="n">Key</sPAn><spAn clASs="P">)</spAN>
</span><span class="p">]</ span> <spa n cla ss= "o" >= </sp an><span class="n " >nam espace</span>
       <span  c l ass= " k" >else </span> < sp a n  cl as s= "p" >: < /s pan>          <span cl ass =" bp">self</sp a n> <span clas s=" o">.</span>< spa n clas s= "vm " >__di ct_ _</sp an><sp a n clas s="p">[</ sp a n><spa n  class= " n "> name </span><span clas s =" p ">]</span> <sp an cla ss = "o " > =</ spa n> <span c la ss="n " >value< / sp a n > 

< d iv class="vie wcode-block "  id ="Nest ed Nam e space. delet e_ u nse lected"><aclas s="viewco de-bac k " href= " ../../. ./claf .co nfi g.ht m l# cl af. co n fig . na mes p ace .NestedN am es pace. dele t e _ u nsel ect ed"> [docs ]</a>    <spa n c lass = "k" >def< /span > <s pa n cla ss="nf ">del et e_unselected</s pan> <span cla ss= "p ">( </ span> < span c las s=" bp">sel f</span > <sp an c l as s="p">,</span> <sp an c la ss="n">n amespa c e< /s p an><span  c las s="p " > ,</sp an>< sp an class ="n">e x ce pt s</span >< span c la ss= "o" >=</s p an>< span c lass="p" >[]): < /span>
      <span class=" n "> d e le t e_ke ys< /span> <spa n cl a ss=" o">= < /s pan >  <spa n cla ss = "p " >[]</span>
       <s pan cl ass=" k">for</span>  <span cla s s = "n">key< /spa n >< span class="ow ">in< /span> <sp a n class= "n">n amespace </span><s p a n class= "o" >.< /sp an> < s pa n class="vm"> _ _ dict __ </span> <sp an clas s=" p"> :</ spa n> 
           <spa ncl as s= "k" >if</ s pan> <sp an  cl as s=" n">ke y </span > <sp an c la ss = "ow ">not</ s pa n >  <sp an  c lass ="o w" >in</ span >  <s pan cla ss="n">ex cep t s</s pa n> <span c lass="p">:</s pa n>
             <s p a n class= "n">delete_keys</span>< s pan cla ss= "o">. </sp an><spancla ss="n" >ap p end</s pan><s pan c la ss= " p ">(</ s p an ><s pa n class="n " > key </spa n> <spa n class ="p">)</span>
</span><span class="p">]</span>_<span class="o">=</span>_<span class="n">namespace</span>
  _ __ _<span_class="k">else</span><span class="p">:</span>
 _  _   _  _<span_class="bp">self</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">[</span><span class="n">name</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>

<div class="viewcode-block" id="NestedNamespace.delete_unselected"><a class="viewcode-back" href="../../../claf.config.html#claf.config.namespace.NestedNamespace.delete_unselected">[docs]</a>__ _<span_class="k">def</span>_<span class="nf">delete_unselected</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span>_<span class="n">namespace</span><span class="p">,</span> <span class="n">excepts</span><span_class="o">=</span><span class="p">[]):</span>
_       <span_class="n">delete_keys</span>_<span class="o">=</span> <span_class="p">[]</span>
        <span_class="k">for</span> <span class="n">key</span> <span class="ow">in</span> <span_class="n">namespace</span><span class="o">.</span><span class="vm">__dict__</span><span_class="p">:</span>
__   _     _<span class="k">if</span> <span class="n">key</span> <span class="ow">not</span>_<span class="ow">in</span> <span class="n">excepts</span><span class="p">:</span>
  _     _    _ _<span class="n">delete_keys</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span_class="n">key</span><span class="p">)</span>