We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> import random >>> random.seed(random) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "...lib/python3.12/random.py", line 167, in seed raise TypeError('The only supported seed types are: None,\n' TypeError: The only supported seed types are: None, int, float, str, bytes, and bytearray.
It appears that the newline in the middle added in #25874 isn't intentional.
I'll send a PR.
3.12
Linux
The text was updated successfully, but these errors were encountered:
Fix python#110050: Use a space instead of newline in the TypeError me…
1425320
…ssage of the random.seed call.
gh-110050: Adjust the newline position in the TypeError message of th…
ce43d5f
…e random.seed call. (#110051) Co-authored-by: Raymond Hettinger <[email protected]>
pythongh-110050: Adjust the newline position in the TypeError message…
3f21697
… of the random.seed call. (pythonGH-110051) (cherry picked from commit ce43d5f) Co-authored-by: Yilei Yang <[email protected]> Co-authored-by: Raymond Hettinger <[email protected]>
Thank you for the fix! It won't appear in 3.12 as it could break code that relies on the old wording, but it did get into 3.13.
Sorry, something went wrong.
cdb0c18
… of the random.seed call. (python#110051) Co-authored-by: Raymond Hettinger <[email protected]>
No branches or pull requests
Bug report
Bug description:
It appears that the newline in the middle added in #25874 isn't intentional.
I'll send a PR.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: