]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897)
authorVictor Stinner <vstinner@python.org>
Tue, 10 Mar 2020 14:15:14 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 14:15:14 +0000 (15:15 +0100)
commit00d7cd8ab8db2c1e1f591ade828f88a1a973d70f
tree9de12914f0f8d11ef0d776e3d6f5906e84675541
parent8510f430781118d9b603c3a2f06945d6ebc5fe42
bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897)

Fix the random.Random.seed() method when a bool is passed as the
seed.

PyObject_Vectorcall() was misused: use PyObject_CallOneArg() instead.
Lib/test/test_random.py
Misc/NEWS.d/next/Library/2020-03-10-12-52-06.bpo-38075.qbESAF.rst [new file with mode: 0644]
Modules/_randommodule.c