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 Antony.Lee
Recipients Antony.Lee
Date 2020-05-01.15:20:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588346447.38.0.355685422923.issue40470@roundup.psfhosted.org>
In-reply-to
Content
It would be nice if inspect.signature was able to understand bound str.format methods, e.g. `inspect.signature("{a} {b}".format) == inspect.signature(lambda *args, a, b, **kwargs: None)` (`*args, **kwargs` are there because str.format ignores additional arguments).  Right now I believe the only way to parse format strings is string.Formatter, which is slightly less discoverable and harder to use (although it certainly also provides more info, e.g. inspect.signature wouldn't be able to tell about format specifiers, but that's fine).
History
Date User Action Args
2020-05-01 15:20:47Antony.Leesetrecipients: + Antony.Lee
2020-05-01 15:20:47Antony.Leesetmessageid: <1588346447.38.0.355685422923.issue40470@roundup.psfhosted.org>
2020-05-01 15:20:47Antony.Leelinkissue40470 messages
2020-05-01 15:20:47Antony.Leecreate