This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author plammens
Recipients plammens
Date 2020-12-30.12:38:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609331888.16.0.35363195517.issue42785@roundup.psfhosted.org>
In-reply-to
Content
Currently, `inspect.signature` doesn't support all callables from the `operator` module, e.g. `operator.attrgetter`:

```python
>>> import inspect
>>> import operator
>>> inspect.signature(operator.attrgetter("spam"))
ValueError: callable operator.attrgetter('is_host') is not supported by signature
```

Support for this could be added either directly to `inspect.signature` or by adding `__signature__` attributes to `operator`'s classes.
History
Date User Action Args
2020-12-30 12:38:08plammenssetrecipients: + plammens
2020-12-30 12:38:08plammenssetmessageid: <1609331888.16.0.35363195517.issue42785@roundup.psfhosted.org>
2020-12-30 12:38:08plammenslinkissue42785 messages
2020-12-30 12:38:07plammenscreate