[Python-checkins] controlflow: Use full example for "5 through 9" (GH-5907)

Mariatta webhook-mailer at python.org
Fri Mar 9 14:57:31 EST 2018


https://github.com/python/cpython/commit/83d7062d2dc5eacfef578e072bca4747c346fdae
commit: 83d7062d2dc5eacfef578e072bca4747c346fdae
branch: master
author: Steven M. Vascellaro <S.Vascellaro at gmail.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2018-03-09T11:57:21-08:00
summary:

controlflow: Use full example for "5 through 9" (GH-5907)

Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9".
This format is more consistent with the surrounding examples.

files:
M Doc/tutorial/controlflow.rst

diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 36b093950e10..30ef159f8b36 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -105,7 +105,7 @@ is possible to let the range start at another number, or to specify a different
 increment (even negative; sometimes this is called the 'step')::
 
     range(5, 10)
-       5 through 9
+       5, 6, 7, 8, 9
 
     range(0, 10, 3)
        0, 3, 6, 9



More information about the Python-checkins mailing list