Skip to content

gh-144584: Remove support for non-int's in __int__/__index__() - #144621

Closed
skirpichev wants to merge 2 commits into
python:mainfrom
skirpichev:remove-ss-in-int-and-index/144584
Closed

gh-144584: Remove support for non-int's in __int__/__index__()#144621
skirpichev wants to merge 2 commits into
python:mainfrom
skirpichev:remove-ss-in-int-and-index/144584

Conversation

@skirpichev

@skirpichevskirpichev commented Feb 9, 2026

Copy link
Copy Markdown
Member

@skirpichev

Copy link
Copy Markdown
MemberAuthor

CC @vstinner, this is a continuation of #112680

@vstinnervstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. The feature is deprecated for 5 Python releases, it's time to remove it.

But I would like to hear @serhiy-storchaka on this issue since he seems to have a different opinion.

@skirpichev

Copy link
Copy Markdown
MemberAuthor

I guess, his opinion will be as for #112680.

Anyway, I think it would be better to do decision before freeze for v3.15. Either revert deprecations or remove deprecated behavior.

@skirpichev
skirpichev deleted the remove-ss-in-int-and-index/144584 branch May 4, 2026 15:14
@vstinner

Copy link
Copy Markdown
Member

Anyway, I think it would be better to do decision before freeze for v3.15. Either revert deprecations or remove deprecated behavior.

Removing deprecated behavior is now too late for 3.15. We should postpone these changes to 3.16.

@skirpichev

Copy link
Copy Markdown
MemberAuthor

Anyone free to continue with a new PR.

Sign up for freeto 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.

2 participants

@skirpichev@vstinner