Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a47af9c

Browse files
committed
fix comment
1 parent ad19556 commit a47af9c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Objects/rangeobject.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,17 @@ range_dealloc(rangeobject *r)
126126
PyObject_Del(r);
127127
}
128128

129-
/* Return number of items in range (lo, hi, step), when arguments are
130-
* PyInt or PyLong objects. step > 0 required. Return a value < 0 if
131-
* & only if the true value is too large to fit in a signed long.
132-
* Arguments MUST return 1 with either PyLong_Check() or
129+
/* Return number of items in range (lo, hi, step), when arguments are PyLong
130+
* objects. step > 0 required. Return a value < 0 if & only if the true
131+
* value is too large to fit in a signed long. Arguments MUST return 1 with
133132
* PyLong_Check(). Return -1 when there is an error.
134133
*/
135134
static PyObject*
136135
range_length_obj(rangeobject *r)
137136
{
138137
/* -------------------------------------------------------------
139138
Algorithm is equal to that of get_len_of_range(), but it operates
140-
on PyObjects (which are assumed to be PyLong or PyInt objects).
139+
on PyObjects (which are assumed to be PyLong objects).
141140
---------------------------------------------------------------*/
142141
int cmp_result;
143142
PyObject *lo, *hi;

0 commit comments

Comments
 (0)