diff options
author | Raymond Hettinger <python@rcn.com> | 2009-02-12 10:16:19 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-02-12 10:16:19 (GMT) |
commit | 66373ab88809844e571c4c6e6756f20261a50cd0 (patch) | |
tree | 8006b079ae9865d0fa957de7957ec435f4e2b1c3 /Modules | |
parent | 31c769ca89ee5f4fdd7ed7e462fa143ed979edee (diff) | |
download | cpython-66373ab88809844e571c4c6e6756f20261a50cd0.zip cpython-66373ab88809844e571c4c6e6756f20261a50cd0.tar.gz cpython-66373ab88809844e571c4c6e6756f20261a50cd0.tar.bz2 |
Fix spaces/tabs in example.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/itertoolsmodule.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index aa764d8..c8e6053 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -3357,13 +3357,12 @@ PyDoc_STRVAR(count_doc, \n\ Return a count object whose .next() method returns consecutive\n\ integers starting from zero or, if specified, from firstval.\n\ -If step is specified, counts by that interval.\n\ -Same as:\n\ +If step is specified, counts by that interval. Equivalent to:\n\n\ def count(firstval=0, step=1):\n\ x = firstval\n\ - while 1:\n\ + while 1:\n\ yield x\n\ - x += step\n"); + x += step\n"); static PyTypeObject count_type = { PyVarObject_HEAD_INIT(NULL, 0) |