Skip to content

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

Closed as duplicate

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

Activity

  1. self-assigned this
    on Feb 8, 2026
  2. added
    type-featureA feature request or enhancement
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    3.15bugs and security fixes
    on Feb 8, 2026
  3. added a commit that references this issue on Feb 9, 2026
  4. removed their assignment
    on Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-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