Mark Dickinson <dicki...@gmail.com> added the comment:
+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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40541> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com