summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-10 14:15:14 (GMT)
committerGitHub <noreply@github.com>2020-03-10 14:15:14 (GMT)
commit00d7cd8ab8db2c1e1f591ade828f88a1a973d70f (patch)
tree9de12914f0f8d11ef0d776e3d6f5906e84675541 /Misc
parent8510f430781118d9b603c3a2f06945d6ebc5fe42 (diff)
downloadcpython-00d7cd8ab8db2c1e1f591ade828f88a1a973d70f.zip
cpython-00d7cd8ab8db2c1e1f591ade828f88a1a973d70f.tar.gz
cpython-00d7cd8ab8db2c1e1f591ade828f88a1a973d70f.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-03-10-12-52-06.bpo-38075.qbESAF.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-03-10-12-52-06.bpo-38075.qbESAF.rst b/Misc/NEWS.d/next/Library/2020-03-10-12-52-06.bpo-38075.qbESAF.rst
new file mode 100644
index 0000000..df52fcc
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-03-10-12-52-06.bpo-38075.qbESAF.rst
@@ -0,0 +1,2 @@
+Fix the :meth:`random.Random.seed` method when a :class:`bool` is passed as the
+seed.