[Python-checkins] r69525 - python/trunk/Modules/itertoolsmodule.c
raymond.hettinger
python-checkins at python.org
Thu Feb 12 11:16:20 CET 2009
Author: raymond.hettinger
Date: Thu Feb 12 11:16:19 2009
New Revision: 69525
Log:
Fix spaces/tabs in example.
Modified:
python/trunk/Modules/itertoolsmodule.c
Modified: python/trunk/Modules/itertoolsmodule.c
==============================================================================
--- python/trunk/Modules/itertoolsmodule.c (original)
+++ python/trunk/Modules/itertoolsmodule.c Thu Feb 12 11:16:19 2009
@@ -3357,13 +3357,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)
More information about the Python-checkins
mailing list