]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport:
authorRaymond Hettinger <python@rcn.com>
Mon, 23 Sep 2002 14:52:40 +0000 (14:52 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 23 Sep 2002 14:52:40 +0000 (14:52 +0000)
commit07c0e6771dcd44bb110df3c626d4d764e3476bf9
tree5d698ddd2874562ed51711fc3880d3a56534c54b
parent070884c76a1d0e9da8eb8f8615f418c283b516b7
Backport:

SF bug 594996:  OverflowError in random.randrange
Loosened the acceptable 'start' and 'stop' arguments so that any
Python (bounded) ints can be used.  So, e.g., randrange(-sys.maxint-1,
sys.maxint) no longer blows up.
Lib/random.py