homepage

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

AltStyle によって変換されたページ (->オリジナル) /