diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-10 14:15:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 14:15:14 (GMT) |
commit | 00d7cd8ab8db2c1e1f591ade828f88a1a973d70f (patch) | |
tree | 9de12914f0f8d11ef0d776e3d6f5906e84675541 /Misc | |
parent | 8510f430781118d9b603c3a2f06945d6ebc5fe42 (diff) | |
download | cpython-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.rst | 2 |
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. |