You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-38075: Port _randommodule.c to PEP-384 (GH-15798)
- Migrate `Random_Type` to `PyType_FromSpec`
- To simulate an old use of `PyLong_Type.tp_as_number->nb_absolute`, I added
code to the module init function to stash `int.__abs__` for later
use. Ideally we'd use `PyType_GetSlot()` instead, but it doesn't currently
work for static types in CPython, and implementing it just for this case
doesn't seem worth it.
- Do exact check for long and dispatch to PyNumber_Absolute, use vector call when not exact.
Activity
vstinner commentedon Sep 15, 2019
vstinner@apu$ ./python -m test -R 3:3 test_threading -m test.test_threading.SubinterpThreadingTests.test_threads_join
Run tests sequentially
0:00:00 load avg: 1.11 [1/1] test_threading
beginning 6 repetitions
123456
......
test_threading leaked [1, 1, 1] references, sum=3
test_threading failed
== Tests result: FAILURE ==
1 test failed:
test_threading
Total duration: 639 ms
Tests result: FAILURE
vstinner commentedon Sep 15, 2019
The regression seems to be introduced by:
commit 04f0bbf (HEAD, refs/bisect/bad)
Author: Dino Viehland <dinoviehland@fb.com>
Date: Fri Sep 13 11:12:27 2019 +0100
vstinner commentedon Sep 16, 2019
commit 09dc2c6
Author: Dino Viehland <dinoviehland@gmail.com>
Date: Sun Sep 15 15:51:44 2019 +0100