Skip to content

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

@skirpichev

Description

@skirpichev

Like #109311. Deprecation was in in 3.10 (#15636) 3.3 (#61776, 31a6554), so this will match preferred practice per PEP 387.

N.B. there was a suggestion to revert such deprecations back. I any case, I believe it's good to decide either way in 3.15.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15new features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions