Skip to content

Remove deprecated support for returning non-complex/float/int types in __complex__/__float__/__int__/__index__() #109311

Open

Description

@skirpichev

This was deprecated since v3.7 (in #74080 and #71170). Our deprecation policy allow us to remove this.

@serhiy-storchaka what's your opinion?

Linked PRs

Activity

  1. corona10 commented on Sep 12, 2023

    @corona10
    Member
  2. skirpichev commented on Oct 6, 2023

    @skirpichev
    MemberAuthor

    BTW, support for int subclasses in __int__() was deprecated in 3.10 (#15636) 3.3 (#61776, 31a6554), so we can remove this in 3.13 as well.

  3. added 2 commits that reference this issue on Dec 4, 2023
  4. self-assigned this
    on Feb 3, 2026
  5. removed their assignment
    on Feb 8, 2026
  6. changed the title [-]Remove deprecated support for returning non-complex/float types in __complex__/__float__()[/-] [+]Remove deprecated support for returning non-complex/float/int types in __complex__/__float__/__int__/__index__()[/+] on May 4, 2026
  7. skirpichev commented on May 4, 2026

    @skirpichev
    MemberAuthor

    #144584 merged with this.

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

    3.15bugs 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