New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
random.seed() doesn't work with bytes and version=1 #75663
Comments
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 |
Raymond, why the fix is not backported to 3.6? |
Mariatta, what is the procedure for completing the backport? I can see the miss-islington bot made a commit but it didn't take in the 3.6 branch. |
What is wrong with PR 3629? |
Hi Raymond, Somehow the backport PR #3629 was closed before instead of merged. To retrigger the backport, we can re-apply the "needs backport to 3.6" label on the original PR (3614). I will do this now :) |
Backport PR has been created. Once the CI checks are done, we can squash and merge it. |
If PR 3629 was closed by mistake it could be just reopened, isn't? |
Serhiy, it can't be re-opened since miss-islington deleted the branch already. |
Ah, now I understand what happened. Thanks Mariatta. |
Backport was done. Thanks. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: