Message368333
+1 for the functionality.
How about "counts" instead of "weights"?
I found the name "weights" misleading - my first thought was that this would be doing a weighted sampling without replacement (like NumPy's `random.choice(..., replace=False, p=weights)`).
Of course, now I've read the docs, I know better. |
|
Date |
User |
Action |
Args |
2020-05-07 11:34:58 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, rhettinger |
2020-05-07 11:34:58 | mark.dickinson | set | messageid: <1588851298.4.0.244084550115.issue40541@roundup.psfhosted.org> |
2020-05-07 11:34:58 | mark.dickinson | link | issue40541 messages |
2020-05-07 11:34:58 | mark.dickinson | create | |
|