[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d458d8dab0abaf781c923f80f8eb832d0c683e88 by Miss Islington (bot) in branch '3.9': bpo-42559: Not that getrandbits() is non-negative. (GH-23843) (GH-23851) https://github.com/python/cpython/commit/d458d8dab0abaf781c923f80f8eb832d0c683e88

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +22715 pull_request: https://github.com/python/cpython/pull/23851 ___ Python tracker

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 5646414ae1fce620b919056f7999dfd15da78e9c by Raymond Hettinger in branch 'master': bpo-42559: Not that getrandbits() is non-negative. (GH-23843) https://github.com/python/cpython/commit/5646414ae1fce620b919056f7999dfd15da78e9c --

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +22704 pull_request: https://github.com/python/cpython/pull/23843 ___ Python tracker ___

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-07 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: Raymond Hettinger: Thanks for acking it would be a useful change! ZackerySpytz: Thanks for making a patch! -- ___ Python tracker ___

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-06 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +22534 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23667 ___ Python tracker

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you care to propose a minimal PR adding the word "unsigned"? Marking as low priority because the referenced docs are over a decade old and we've not seen a single case of someone being confused by it. -- assignee: -> rhettinger components:

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-03 Thread Paul Sokolovsky
New submission from Paul Sokolovsky : Current docs for random.getrandbits() ( https://docs.python.org/3/library/random.html#random.getrandbits ) read (3.9.1rc1 at the top of the page): Returns a Python integer with k random bits. This method is supplied with the MersenneTwister generator