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.
........
This commit is contained in:
Georg Brandl 2009-08-13 08:47:18 +00:00
parent 98e472d7fb
commit 7d1e88063c
3 changed files with 10 additions and 11 deletions

View file

@ -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)