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 serhiy.storchaka
Recipients larry, mark.dickinson, rhettinger, serhiy.storchaka
Date 2020-07-20.04:14:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595218460.71.0.607705394471.issue41342@roundup.psfhosted.org>
In-reply-to
Content
Yes, you can do this without Argument Clinic, but Argument Clinic allows to hide the use of unstable private API and cumbersome code under macros and in generated files.

> That said, it would be great if someone were to work on building-out AC to support more interesting argument patterns like those in round().

The problem is not only in Argument Clinic (and the Argument Clinic part is mainly solved). The problem is that currently it is not possible to express the signature of int.__round__() (and dict.get(), and getattr()) in Python syntax, and the inspect module does not support any non-Python syntax for this either. Once we invent the way to express it, supporting it in Argument Clinic will be merely technical problem.
History
Date User Action Args
2020-07-20 04:14:20serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson, larry
2020-07-20 04:14:20serhiy.storchakasetmessageid: <1595218460.71.0.607705394471.issue41342@roundup.psfhosted.org>
2020-07-20 04:14:20serhiy.storchakalinkissue41342 messages
2020-07-20 04:14:20serhiy.storchakacreate