Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument Clinic should not exclude __complex__ methods #89141

Closed
mdickinson opened this issue Aug 22, 2021 · 2 comments
Closed

Argument Clinic should not exclude __complex__ methods #89141

mdickinson opened this issue Aug 22, 2021 · 2 comments
Assignees
Labels
3.11 only security fixes type-bug An unexpected behavior, bug, or error

Comments

@mdickinson
Copy link
Member

BPO 44978
Nosy @mdickinson
PRs
  • bpo-44978: allow Argument Clinic to handle __complex__ special methods #27886
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/mdickinson'
    closed_at = <Date 2021-08-22.12:30:50.220>
    created_at = <Date 2021-08-22.10:45:03.034>
    labels = ['type-bug', '3.11']
    title = 'Argument Clinic should not exclude __complex__ methods'
    updated_at = <Date 2021-08-22.12:30:50.220>
    user = 'https://github.com/mdickinson'

    bugs.python.org fields:

    activity = <Date 2021-08-22.12:30:50.220>
    actor = 'mark.dickinson'
    assignee = 'mark.dickinson'
    closed = True
    closed_date = <Date 2021-08-22.12:30:50.220>
    closer = 'mark.dickinson'
    components = ['Demos and Tools']
    creation = <Date 2021-08-22.10:45:03.034>
    creator = 'mark.dickinson'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44978
    keywords = ['patch']
    message_count = 2.0
    messages = ['400066', '400069']
    nosy_count = 1.0
    nosy_names = ['mark.dickinson']
    pr_nums = ['27886']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44978'
    versions = ['Python 3.11']

    @mdickinson
    Copy link
    Member Author

    The argument clinic currently refuses to handle a __complex__ method. However, unlike __int__ and __float__, __complex__ should require no special handling by the argument clinic, since there's no dedicated slot for the __complex__ method.

    PR arriving shortly.

    @mdickinson mdickinson added 3.11 only security fixes type-bug An unexpected behavior, bug, or error labels Aug 22, 2021
    @mdickinson
    Copy link
    Member Author

    New changeset c5c3fbe by Mark Dickinson in branch 'main':
    bpo-44978: allow Argument Clinic to handle __complex__ special methods (GH-27886)
    c5c3fbe

    @mdickinson mdickinson self-assigned this Aug 22, 2021
    @mdickinson mdickinson self-assigned this Aug 22, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant