Skip to content

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

Closed
gpshead wants to merge 2 commits into
python:3.13from
gpshead:revert-3.13-gh-134965-getrandbits-index
Closed

[3.13] gh-135326: Revert "[3.13] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658) (GH-134965)#135327
gpshead wants to merge 2 commits into
python:3.13from
gpshead:revert-3.13-gh-134965-getrandbits-index

Conversation

@gpshead

@gpshead gpshead commented Jun 10, 2025

Copy link
Copy Markdown
Member

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) Jun 10, 2025
@serhiy-storchaka

Copy link
Copy Markdown
Member

Wait-wait-wait, it goes too far.

@serhiy-storchaka

Copy link
Copy Markdown
Member

See #135332.

@Yhg1s

Yhg1s commented Jun 10, 2025

Copy link
Copy Markdown
Member

The other fix went in, so I don't think this revert is relevant anymore.

@gpshead

gpshead commented Jun 11, 2025

Copy link
Copy Markdown
Member Author

a different fix was landed. thanks all!

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