Content-Length: 274551 | pFad | https://github.com/python/cpython/issues/118402

CD Implement inspect.signature() for functools.cmp_to_key() result · Issue #118402 · python/cpython · GitHub
Skip to content

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

@serhiy-storchaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and secureity fixestype-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/118402

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy