New submission from Ted Whalen :
The behavior of random.choices when negative weights are provided is
unexpected. While giving a negative weight for one value is probably bad, it's
really unfortunate that providing a negative weight for one value affects the
probability of selecti
Ted Whalen added the comment:
I think this should be reopened, as the behavior doesn't always raise an error,
and, in fact, does something very unexpected:
Python 3.7.2 (default, Jan 13 2019, 12:50:01)
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copy