This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: example function in tertools.count docstring is misindented
Type: enhancement Stage: patch review
Components: Extension Modules Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Intendation issue in example code in itertools.count documentation
View: 18912
Assigned To: docs@python Nosy List: BreamoreBoy, docs@python, eric.araujo, rhettinger, zbysz
Priority: normal Keywords: patch

Created on 2012-02-23 20:07 by zbysz, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
itertools-count-indentation.diff zbysz, 2012-02-23 20:07 review
Messages (3)
msg154084 - (view) Author: Zbyszek Jędrzejewski-Szmek (zbysz) * Date: 2012-02-23 20:07
Indentation is broken.

diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -3221,10 +3221,10 @@
 Return a count object whose .__next__() method returns consecutive values.\n\
 Equivalent to:\n\n\
     def count(firstval=0, step=1):\n\
-    x = firstval\n\
-    while 1:\n\
-        yield x\n\
-        x += step\n");
+        x = firstval\n\
+        while 1:\n\
+            yield x\n\
+            x += step\n");
msg154111 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-02-24 04:43
Patch LGTM.  Raymond, any objection?
msg185021 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2013-03-23 00:26
As this is a trivial patch could it be applied please?
History
Date User Action Args
2022-04-11 14:57:27adminsetgithub: 58309
2013-10-06 17:35:45georg.brandlsetstatus: open -> closed
superseder: Intendation issue in example code in itertools.count documentation
resolution: duplicate
2013-03-23 00:26:36BreamoreBoysetnosy: + BreamoreBoy
messages: + msg185021
2012-02-24 04:43:26eric.araujosettitle: example function in tertools.count is misindented -> example function in tertools.count docstring is misindented
components: + Extension Modules, - Documentation, Library (Lib)

nosy: + rhettinger, eric.araujo
versions: + Python 2.7, Python 3.2
messages: + msg154111
stage: patch review
2012-02-23 20:07:12zbyszcreate