[issue39918] random.Random(False) weird error

2020-03-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: New changeset 00d7cd8ab8db2c1e1f591ade828f88a1a973d70f by Victor Stinner in branch 'master': bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897) https://github.com/python/cpython/commit/00d7cd8ab8db2c1e1f591ade828f88a1a973d70f --

[issue39918] random.Random(False) weird error

2020-03-10 Thread STINNER Victor
STINNER Victor added the comment: > Should that 0 in the PyObject_Vectorcall be a 1 instead? Right. I proposed PR 18897 to fix it and add an unit test on seed(False). -- ___ Python tracker _

[issue39918] random.Random(False) weird error

2020-03-09 Thread Mark Dickinson
Mark Dickinson added the comment: The lines here look odd to me: https://github.com/python/cpython/blob/363fab83b8a0e6d924c7a7c577feec6a2812bb8c/Modules/_randommodule.c#L290-L291 args[0] = arg; n = PyObject_Vectorcall(_randomstate_global->Long___abs__, args, 0,

[issue39918] random.Random(False) weird error

2020-03-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue39918] random.Random(False) weird error

2020-03-09 Thread Miro Hrončok
Miro Hrončok added the comment: Possibly related to https://bugs.python.org/issue32554 https://github.com/python/cpython/pull/15382 Deprecate hashing arbitrary types in random.seed() -- nosy: +hroncok, vstinner ___ Python tracker

[issue39918] random.Random(False) weird error

2020-03-09 Thread Jerry James
New submission from Jerry James : Python 3.8: >>> import random >>> r = random.Random(False) >>> r Python 3.9 alpha 4: >>> import random >>> r = random.Random(False) Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.9/random.py", line 100, in __init__ s