This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2019-09-15.09:52:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568541153.06.0.264991081813.issue38176@roundup.psfhosted.org>
In-reply-to
Content
The regression seems to be introduced by:

commit 04f0bbfbedf8d2bb69b012f853de6648b1a9f27f (HEAD, refs/bisect/bad)
Author: Dino Viehland <dinoviehland@fb.com>
Date:   Fri Sep 13 11:12:27 2019 +0100

    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.
History
Date User Action Args
2019-09-15 09:52:33vstinnersetrecipients: + vstinner
2019-09-15 09:52:33vstinnersetmessageid: <1568541153.06.0.264991081813.issue38176@roundup.psfhosted.org>
2019-09-15 09:52:33vstinnerlinkissue38176 messages
2019-09-15 09:52:32vstinnercreate