[docs] green bugs and spam

Martin Feuchtwanger martinf at underhill.ca
Wed Apr 13 21:22:39 CEST 2011


Buglet:

In http://docs.python.org/py3k/tutorial/classes.html#scopes-and-namespaces-example the "nonlocal" 
statement  should be green.

     <span  class="k">def</span>  <span  class="nf">do_nonlocal</span><span  class="p">():</span>
         <span  class="*n*">nonlocal</span>  <span  class="n">spam</span>
         <span  class="n">spam</span>  <span  class="o">=</span>  <span  class="s">&quot;nonlocal spam&quot;</span>

That is, it should be in the "k" class

     <span  class="k">def</span>  <span  class="nf">do_nonlocal</span><span  class="p">():</span>
         <span  class="*k*">nonlocal</span>  <span  class="n">spam</span>
         <span  class="n">spam</span>  <span  class="o">=</span>  <span  class="s">&quot;nonlocal spam&quot;</span>

Great example, BTW -- helped me understand exactly.

-- 
Martin Feuchtwanger, PhD   martinf at underhill.ca   604-732-3384 x 206
Underhill Geomatics Ltd.   www.underhill.ca
210A, 3430 Brighton Ave.   Burnaby, BC            V5A 3H4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110413/a1398c1b/attachment.html>


More information about the docs mailing list