[docs] [issue18912] Intendation issue in example code in itertools.count documentation

Jeroen Van Goey report at bugs.python.org
Tue Sep 3 10:08:26 CEST 2013


New submission from Jeroen Van Goey:

The sample code in the itertools.count documentation should be indented by 4 spaces.

For 2.7.4: lines 3429 till 3432 in http://hg.python.org/releasing/2.7.4/file/026ee0057e2d/Modules/itertoolsmodule.c#l3429

For 3.4.0a1: lines 3981 till 3984 in http://hg.python.org/releasing/py3.4.0a1/file/edc668a667ad/Modules/itertoolsmodule.c#l3981

Also, the example code uses the arguments 'firstval' and 'step' whereas the documentation of the function itself uses the arguments 'start' and 'step'. Maybe better be consistent and use as first argument 'start' in both cases?

----------
assignee: docs at python
components: Documentation
hgrepos: 207
messages: 196826
nosy: docs at python, jeroen-vangoey
priority: normal
severity: normal
status: open
title: Intendation issue in example code in itertools.count documentation
type: enhancement
versions: Python 2.7, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18912>
_______________________________________


More information about the docs mailing list