Show More
@@ -191,7 +191,7 b' hgweb filerevision, html' | |||
|
191 | 191 | hgweb fileannotate, html |
|
192 | 192 | |
|
193 | 193 | $ (get-with-headers.py localhost:$HGPORT 'annotate/tip/primes.py') \ |
|
194 |
> | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"m |
|
|
194 | > | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mf\"/class=\"mi\"/g" | |
|
195 | 195 | 200 Script output follows |
|
196 | 196 | |
|
197 | 197 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
@@ -408,7 +408,7 b' hgweb fileannotate, html' | |||
|
408 | 408 | <a href="/annotate/06824edf55d0/primes.py#l18" |
|
409 | 409 | title="06824edf55d0: a">test@0</a> |
|
410 | 410 | </td> |
|
411 |
<td class="source"><a href="#l18"> 18</a> <span class="n">ns</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">%</span> <span class="n">p</span> <span class="o">!=</span> <span class="m |
|
|
411 | <td class="source"><a href="#l18"> 18</a> <span class="n">ns</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">%</span> <span class="n">p</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">,</span> <span class="n">ns</span><span class="p">)</span></td> | |
|
412 | 412 | </tr> |
|
413 | 413 | <tr id="l19"> |
|
414 | 414 | <td class="annotate"> |
@@ -436,14 +436,14 b' hgweb fileannotate, html' | |||
|
436 | 436 | <a href="/annotate/06824edf55d0/primes.py#l22" |
|
437 | 437 | title="06824edf55d0: a">test@0</a> |
|
438 | 438 | </td> |
|
439 |
<td class="source"><a href="#l22"> 22</a> <span class="n">odds</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">i</span><span class="p">:</span> <span class="n">i</span> <span class="o">%</span> <span class="m |
|
|
439 | <td class="source"><a href="#l22"> 22</a> <span class="n">odds</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">i</span><span class="p">:</span> <span class="n">i</span> <span class="o">%</span> <span class="mi">2</span> <span class="o">==</span> <span class="mi">1</span><span class="p">,</span> <span class="n">count</span><span class="p">())</span></td> | |
|
440 | 440 | </tr> |
|
441 | 441 | <tr id="l23"> |
|
442 | 442 | <td class="annotate"> |
|
443 | 443 | <a href="/annotate/06824edf55d0/primes.py#l23" |
|
444 | 444 | title="06824edf55d0: a">test@0</a> |
|
445 | 445 | </td> |
|
446 |
<td class="source"><a href="#l23"> 23</a> <span class="kn">return</span> <span class="n">chain</span><span class="p">([</span><span class="m |
|
|
446 | <td class="source"><a href="#l23"> 23</a> <span class="kn">return</span> <span class="n">chain</span><span class="p">([</span><span class="mi">2</span><span class="p">],</span> <span class="n">sieve</span><span class="p">(</span><span class="n">dropwhile</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o"><</span> <span class="mi">3</span><span class="p">,</span> <span class="n">odds</span><span class="p">)))</span></td> | |
|
447 | 447 | </tr> |
|
448 | 448 | <tr id="l24"> |
|
449 | 449 | <td class="annotate"> |
@@ -478,7 +478,7 b' hgweb fileannotate, html' | |||
|
478 | 478 | <a href="/annotate/06824edf55d0/primes.py#l28" |
|
479 | 479 | title="06824edf55d0: a">test@0</a> |
|
480 | 480 | </td> |
|
481 |
<td class="source"><a href="#l28"> 28</a> <span class="n">n</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="m |
|
|
481 | <td class="source"><a href="#l28"> 28</a> <span class="n">n</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span></td> | |
|
482 | 482 | </tr> |
|
483 | 483 | <tr id="l29"> |
|
484 | 484 | <td class="annotate"> |
@@ -492,7 +492,7 b' hgweb fileannotate, html' | |||
|
492 | 492 | <a href="/annotate/06824edf55d0/primes.py#l30" |
|
493 | 493 | title="06824edf55d0: a">test@0</a> |
|
494 | 494 | </td> |
|
495 |
<td class="source"><a href="#l30"> 30</a> <span class="n">n</span> <span class="o">=</span> <span class="m |
|
|
495 | <td class="source"><a href="#l30"> 30</a> <span class="n">n</span> <span class="o">=</span> <span class="mi">10</span></td> | |
|
496 | 496 | </tr> |
|
497 | 497 | <tr id="l31"> |
|
498 | 498 | <td class="annotate"> |
General Comments 0
You need to be logged in to leave comments.
Login now