Message302246
The behavior of random.seed() with bytes and version=1 is specially documented. But actually it doesn't work.
>>> import random
>>> random.seed(b'abc', version=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/serhiy/py/cpython/Lib/random.py", line 113, in seed
x = ord(a[0]) << 7 if a else 0
TypeError: ord() expected string of length 1, but int found |
|
Date |
User |
Action |
Args |
2017-09-15 12:10:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
2017-09-15 12:10:39 | serhiy.storchaka | set | messageid: <1505477439.78.0.0722719619353.issue31482@psf.upfronthosting.co.za> |
2017-09-15 12:10:39 | serhiy.storchaka | link | issue31482 messages |
2017-09-15 12:10:39 | serhiy.storchaka | create | |
|