Python Forum
cosmetic glitch in tutorial
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cosmetic glitch in tutorial
#1
(If you're short on time, feel free to skip this post.)

I have found a cosmetic glitch in the tutorial at:
https://docs.python.org/3/tutorial/intro...html#lists

   

It renders just fine on macOS Safari.
The glitch appears in iOS 13.7 Safari and the latest iOS Chrome.


The HTML being used is:
<p>One way to remember how slices work is to think of the indices as pointing
<em>between</em> characters, with the left edge of the first character numbered 0.
Then the right edge of the last character of a string of <em>n</em> characters has
index <em>n</em>, for example:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span> <span class="o">+---+---+---+---+---+---+</span>
<span class="o">|</span> <span class="n">P</span> <span class="o">|</span> <span class="n">y</span> <span class="o">|</span> <span class="n">t</span> <span class="o">|</span> <span class="n">h</span> <span class="o">|</span> <span class="n">o</span> <span class="o">|</span> <span class="n">n</span> <span class="o">|</span>
<span class="o">+---+---+---+---+---+---+</span>
<span class="mi">0</span> <span class="mi">1</span> <span class="mi">2</span> <span class="mi">3</span> <span class="mi">4</span> <span class="mi">5</span> <span class="mi">6</span>
<span class="o">-</span><span class="mi">6</span> <span class="o">-</span><span class="mi">5</span> <span class="o">-</span><span class="mi">4</span> <span class="o">-</span><span class="mi">3</span> <span class="o">-</span><span class="mi">2</span> <span class="o">-</span><span class="mi">1</span>
</pre></div>
</div>

It looks like another tutorial page doesn't line up right either.
[ https://docs.python.org/3/tutorial/controlflow.html ,
go down to "parrot(1000)" - comments on the right aren't even. ]

Would be happy to tell Apple or whatever.
Reply
#2
python-forum.io is not part of python.org

Please read: https://python-forum.io/misc.php?action=help&hid=48
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020