Skip to content

Implement inspect.signature() for functools.cmp_to_key() result #118402

Closed

Description

@serhiy-storchaka

Feature or enhancement

functools.cmp_to_key() returns a custom callable. inspect.signature() returns generic <Signature (*args, **kwargs)> raises a TypeError for the C implementation. The following PR makes it returning the same signature (<Signature (obj)>) for both Python and C implementations (currently it is returned for the Python implementation).

This issue is similar to #118285.

Linked PRs

Activity

  1. serhiy-storchaka commented on Apr 29, 2024

    @serhiy-storchaka
    MemberAuthor

    Split the TypeError bug in a separate issue #118404.

  2. added 2 commits that reference this issue on Apr 30, 2024
  3. added a commit that references this issue on May 8, 2024
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.13only security fixestype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions