
Buglet: In http://docs.python.org/py3k/tutorial/classes.html#scopes-and-namespaces-exam... 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">"nonlocal spam"</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">"nonlocal spam"</span> Great example, BTW -- helped me understand exactly. -- Martin Feuchtwanger, PhD martinf@underhill.ca 604-732-3384 x 206 Underhill Geomatics Ltd. www.underhill.ca 210A, 3430 Brighton Ave. Burnaby, BC V5A 3H4

Hi Martin, thanks for your report. On Wed, Apr 13, 2011 at 21:22, Martin Feuchtwanger <martinf@underhill.ca> wrote:
Buglet:
In http://docs.python.org/py3k/tutorial/classes.html#scopes-and-namespaces-exam... 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">"nonlocal spam"</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">"nonlocal spam"</span>
This is a problem in pygments (used to syntax highlight code in the examples) that doesn't recognize 'nonlocal': Georg, hi! :) I saw [1]: since it's used to build documentation for python 3.x, do you think you can reconsider your evaluation of the bug and add support for it? [1] https://bitbucket.org/birkenfeld/pygments-main/issue/610/nonlocal-keyword-no... Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
participants (2)
-
Martin Feuchtwanger
-
Sandro Tosi