[Python-checkins] CVS: python/dist/src/Lib whrandom.py,1.16,1.17
Fred L. Drake
python-dev@python.org
Fri, 30 Jun 2000 12:33:37 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29748/Lib
Modified Files:
whrandom.py
Log Message:
Line-wrap and properly indent a couple of docstrings.
Index: whrandom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/whrandom.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** whrandom.py 2000/02/28 15:12:25 1.16
--- whrandom.py 2000/06/30 19:33:35 1.17
***************
*** 83,87 ****
def randint(self, a, b):
! """Get a random integer in the range [a, b] including both end points.
(Deprecated; use randrange below.)"""
return self.randrange(a, b+1)
--- 83,89 ----
def randint(self, a, b):
! """Get a random integer in the range [a, b] including
! both end points.
!
(Deprecated; use randrange below.)"""
return self.randrange(a, b+1)
***************
*** 92,99 ****
def randrange(self, start, stop=None, step=1, int=int, default=None):
! """Choose a random item from range([start,] step[, stop]).
This fixes the problem with randint() which includes the
endpoint; in Python this is usually not what you want.
! Do not supply the 'int' and 'default' arguments."""
# This code is a bit messy to make it fast for the
# common case while still doing adequate error checking
--- 94,102 ----
def randrange(self, start, stop=None, step=1, int=int, default=None):
! """Choose a random item from range(start, stop[, step]).
!
This fixes the problem with randint() which includes the
endpoint; in Python this is usually not what you want.
! Do not supply the 'int' and 'default' arguments."""
# This code is a bit messy to make it fast for the
# common case while still doing adequate error checking