Mercurial > cpython-lru_cache-weakref
diff Modules/itertoolsmodule.c @ 51545:cb8190a1bfab
Fix spaces/tabs in example.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Thu, 12 Feb 2009 10:19:59 +0000 |
| parents | b0db109089c9 |
| children | 2a263d66d659 |
line wrap: on
line diff
--- a/Modules/itertoolsmodule.c Thu Feb 12 07:35:29 2009 +0000 +++ b/Modules/itertoolsmodule.c Thu Feb 12 10:19:59 2009 +0000 @@ -3031,13 +3031,12 @@ \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)
