diff options
| author | Georg Brandl <georg@python.org> | 2009-08-13 08:47:18 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-08-13 08:47:18 (GMT) |
| commit | 7d1e88063c6241d4750326fc772d5b8a6819a77f (patch) | |
| tree | 2aece70a7b09bdcbd64d792029c042d3951c534d /Objects/rangeobject.c | |
| parent | 98e472d7fb88e8cf7c7797a879eb63cf3242ed97 (diff) | |
| download | cpython-7d1e88063c6241d4750326fc772d5b8a6819a77f.zip cpython-7d1e88063c6241d4750326fc772d5b8a6819a77f.tar.gz cpython-7d1e88063c6241d4750326fc772d5b8a6819a77f.tar.bz2 | |
Merged revisions 73656,73658,73663,73666 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r73656 | mark.dickinson | 2009-06-29 00:08:40 +0200 (Mo, 29 Jun 2009) | 1 line
Fix description of range_length_obj
........
r73658 | raymond.hettinger | 2009-06-29 00:30:13 +0200 (Mo, 29 Jun 2009) | 1 line
Small doc fix-ups to floatingpoint.rst. More are forthcoming.
........
r73663 | raymond.hettinger | 2009-06-29 01:21:38 +0200 (Mo, 29 Jun 2009) | 1 line
Clean-up floating point tutorial.
........
r73666 | alexandre.vassalotti | 2009-06-29 03:13:41 +0200 (Mo, 29 Jun 2009) | 2 lines
Make b64encode raises properly a TypeError when altchars is not bytes.
........
Diffstat (limited to 'Objects/rangeobject.c')
| -rw-r--r-- | Objects/rangeobject.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 77e1954..6d3e8b0 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -126,10 +126,9 @@ range_dealloc(rangeobject *r) PyObject_Del(r); } -/* Return number of items in range (lo, hi, step), when arguments are PyLong - * objects. Return a value < 0 if & only if the true value is too large to - * fit in a signed long. Arguments MUST return 1 with PyLong_Check(). Return - * -1 when there is an error. +/* Return number of items in range (lo, hi, step) as a PyLong object, + * when arguments are PyLong objects. Arguments MUST return 1 with + * PyLong_Check(). Return NULL when there is an error. */ static PyObject* range_length_obj(rangeobject *r) |
