Closed
Description
Bug report
Bug description:
>>> 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.
CPython versions tested on:
3.12
Operating systems tested on:
Linux