Skip to content

[3.15] gh-155486: Allow non-compact integers in TO_BOOL_INT (GH-155531) - #155700

Closed
marinelay wants to merge 1 commit into
python:3.15from
marinelay:backport-cd98657-3.15
Closed

marinelay wants to merge 1 commit into
python:3.15from
marinelay:backport-cd98657-3.15

Conversation

@marinelay

@marinelay marinelay commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Backport of GH-155531 to Python 3.15.

(cherry picked from commit cd98657)

…ythonGH-155531)

(cherry picked from commit cd98657)

Co-authored-by: Wonseok Oh <marinelay7@gmail.com>
@python-cla-bot

python-cla-bot Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@eendebakpt eendebakpt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me as well. The issue is marked as a bug, but the only visible behavior changes is performance. Since it might help future backports I am fine with merging.

@Fidget-Spinner

@encukou

encukou commented Oct 13, 2026

Copy link
Copy Markdown
Member

To me this looks like an additional optimization with little real-world impact, rather than a bugfix, so it should count towards the speedups in 3.16.

Compiler experts, please reopen if you disagree.

@encukou encukou closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants