[docs] green bugs and spam

Sandro Tosi sandro.tosi at gmail.com
Tue Apr 19 20:53:43 CEST 2011


Hi Martin,
thanks for your report.

On Wed, Apr 13, 2011 at 21:22, Martin Feuchtwanger <martinf at underhill.ca> wrote:
> 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>

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-not-recognized-python

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list