[issue42944] random.Random.sample bug when counts is not None

2021-01-17 Thread Jon FRANCO
Jon FRANCO added the comment: PR submitted. Let me know if I missed something, this is also my first PR. Regards. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42944] random.Random.sample bug when counts is not None

2021-01-17 Thread Jon FRANCO
Change by Jon FRANCO : -- keywords: +patch pull_requests: +23058 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24235 ___ Python tracker <https://bugs.python.org/issu

[issue42944] random.Random.sample bug when counts is not None

2021-01-16 Thread Jon FRANCO
New submission from Jon FRANCO : Hello, If I am reading right, random.Random.sample method has a bug if counts is not None. Line 482 (of master): """ selections = sample(range(total), k=k) """ this is calling the module function 'sample' and