summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-28 18:16:02 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-28 18:16:02 (GMT)
commit537caa2a0dba5f101b95319b0a273a9773ab613e (patch)
tree2b625de296fd20d9e0a6b6c62fcb33b6d8371302 /Doc/reference
parent508290fea622e5cc360a3457d1f11d63aaad6336 (diff)
downloadcpython-537caa2a0dba5f101b95319b0a273a9773ab613e.zip
cpython-537caa2a0dba5f101b95319b0a273a9773ab613e.tar.gz
cpython-537caa2a0dba5f101b95319b0a273a9773ab613e.tar.bz2
Merged revisions 71540,71544,71546,71563,71572,71607,71653 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71540 | georg.brandl | 2009-04-12 22:30:53 +0200 (So, 12 Apr 2009) | 1 line #5719: add short usage example to optparse docstring. ........ r71544 | benjamin.peterson | 2009-04-13 01:19:56 +0200 (Mo, 13 Apr 2009) | 1 line fix extra parenthesis #5774 ........ r71546 | benjamin.peterson | 2009-04-13 01:44:15 +0200 (Mo, 13 Apr 2009) | 1 line fix missing quote ........ r71563 | georg.brandl | 2009-04-13 14:36:18 +0200 (Mo, 13 Apr 2009) | 1 line Simplify markup. ........ r71572 | georg.brandl | 2009-04-13 15:13:25 +0200 (Mo, 13 Apr 2009) | 1 line #5745: more linking for identifiers in email docs. ........ r71607 | benjamin.peterson | 2009-04-14 23:23:09 +0200 (Di, 14 Apr 2009) | 1 line tupel -> tuple ........ r71653 | raymond.hettinger | 2009-04-16 20:16:10 +0200 (Do, 16 Apr 2009) | 1 line Clarify the behavior of any() and all() with an empty iterable. ........
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 408298d..4d7addb 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -1,4 +1,3 @@
-
.. _compound:
*******************
@@ -195,12 +194,10 @@ effect of Pascal's ``for i := a to b do``; e.g., ``range(3)`` returns the list
inserts an item in the sequence before the current item, the current item will
be treated again the next time through the loop. This can lead to nasty bugs
that can be avoided by making a temporary copy using a slice of the whole
- sequence, e.g.,
-
-::
+ sequence, e.g., ::
- for x in a[:]:
- if x < 0: a.remove(x)
+ for x in a[:]:
+ if x < 0: a.remove(x)
.. _try: