mirror of
https://github.com/python/cpython.git
synced 2025-09-21 16:10:33 +00:00
Issue #18912: Fix indentation in docstring
Contributed by Jeroen Van Goey
This commit is contained in:
commit
207fe01187
2 changed files with 5 additions and 4 deletions
|
@ -445,6 +445,7 @@ Yannick Gingras
|
||||||
Matt Giuca
|
Matt Giuca
|
||||||
Wim Glenn
|
Wim Glenn
|
||||||
Michael Goderbauer
|
Michael Goderbauer
|
||||||
|
Jeroen Van Goey
|
||||||
Christoph Gohlke
|
Christoph Gohlke
|
||||||
Tim Golden
|
Tim Golden
|
||||||
Guilherme Gonçalves
|
Guilherme Gonçalves
|
||||||
|
|
|
@ -3978,10 +3978,10 @@ PyDoc_STRVAR(count_doc,
|
||||||
Return a count object whose .__next__() method returns consecutive values.\n\
|
Return a count object whose .__next__() method returns consecutive values.\n\
|
||||||
Equivalent to:\n\n\
|
Equivalent to:\n\n\
|
||||||
def count(firstval=0, step=1):\n\
|
def count(firstval=0, step=1):\n\
|
||||||
x = firstval\n\
|
x = firstval\n\
|
||||||
while 1:\n\
|
while 1:\n\
|
||||||
yield x\n\
|
yield x\n\
|
||||||
x += step\n");
|
x += step\n");
|
||||||
|
|
||||||
static PyTypeObject count_type = {
|
static PyTypeObject count_type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0)
|
PyVarObject_HEAD_INIT(NULL, 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue