Message309956
When using a tuple that include a string the results are not consistent when invoking a new interpreter or process.
For example executing the following on a linux machine will yield different results:
python3.6 -c 'import random; random.seed(("a", 1)); print(random.random())"
Please note that the doc string of random.seed states: "Initialize internal state from hashable object."
Python documentation does not. (https://docs.python.org/3.6/library/random.html#random.seed)
This is very confusing, I hope you can fix the behavior, not the doc string. |
|
Date |
User |
Action |
Args |
2018-01-15 09:08:22 | johnnyd | set | recipients:
+ johnnyd |
2018-01-15 09:08:22 | johnnyd | set | messageid: <1516007302.18.0.467229070634.issue32554@psf.upfronthosting.co.za> |
2018-01-15 09:08:22 | johnnyd | link | issue32554 messages |
2018-01-15 09:08:21 | johnnyd | create | |
|