diff options
author | Raymond Hettinger <python@rcn.com> | 2009-02-12 10:19:59 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-02-12 10:19:59 (GMT) |
commit | 6dfff197431b861dd85d07ee5ab86c291d4a8541 (patch) | |
tree | 8b75923a7dfccc19ccda0ea07ffbf19fcea5752c /Modules/itertoolsmodule.c | |
parent | 365a1864fd285fc6ee9d9fa1f8770b39d4dab830 (diff) | |
download | cpython-6dfff197431b861dd85d07ee5ab86c291d4a8541.zip cpython-6dfff197431b861dd85d07ee5ab86c291d4a8541.tar.gz cpython-6dfff197431b861dd85d07ee5ab86c291d4a8541.tar.bz2 |
Fix spaces/tabs in example.
Diffstat (limited to 'Modules/itertoolsmodule.c')
-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 284b960..75c6e7e 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -3031,13 +3031,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) |