Skip to content

[3.13] gh-135326: Revert "[3.13] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658) (GH-134965) #135327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 3.13
Choose a base branch
from

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Jun 10, 2025

This reverts commit 3e1b8d6.

This caused a regression in Python 3.13.4, getrandbit() no longer accepted an integer-like object via __index__.

Fixes #135326
Closes #135326

…ions on getrandbits() and randbytes() (pythonGH-133658) (pythonGH-134965)"

This reverts commit 3e1b8d6.

This caused a regression in Python 3.13.4, getrandbit() no longer accepted an integer-like object via `__index__`.
@gpshead gpshead changed the title gh-135326: Revert "[3.13] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658) (GH-134965) [3.13] gh-135326: Revert "[3.13] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658) (GH-134965) Jun 10, 2025
@serhiy-storchaka
Copy link
Member

Wait-wait-wait, it goes too far.

@serhiy-storchaka
Copy link
Member

See #135332.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants