Skip to content

Conversation

@tornaria
Copy link
Contributor

Issue: python/cpython#135326
PR: python/cpython#135332

Testing the changes

  • I tested the changes in this PR: briefly

@ahesford

The regression causes problems in sagemath, e.g.:

$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.6, Release Date: 2025-03-31                    │
│ Using Python 3.13.4. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
sage: import random ; r = random.Random()
sage: r.getrandbits(20)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
...
TypeError: an integer is required

@ahesford ahesford merged commit fff3c45 into void-linux:master Jun 11, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants