This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author johnnyd
Recipients johnnyd
Date 2018-01-15.09:08:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516007302.18.0.467229070634.issue32554@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-01-15 09:08:22johnnydsetrecipients: + johnnyd
2018-01-15 09:08:22johnnydsetmessageid: <1516007302.18.0.467229070634.issue32554@psf.upfronthosting.co.za>
2018-01-15 09:08:22johnnydlinkissue32554 messages
2018-01-15 09:08:21johnnydcreate