[Python-Dev] signature.object, argument clinic and grouped parameters
tjreedy at udel.edu
Mon Jan 20 21:25:03 CET 2014
On 1/20/2014 7:59 AM, Nick Coghlan wrote:
> However, while I know you're keen to finally make introspection work
> for all C level callables in 3.4, even the ones with signatures that
> can't be expressed as Python function signatures, I'd like to strongly
> encourage you to hold off on that last part until Python 3.5.
> That way, you can resurrect PEP 457, recast it as proposing an
> *output* format for inspect.Signature.__repr__(), add an
> inspect.Signature.fromstr() API that can use it to create a signature
> object from __text_signature__ attributes (rather than relying on
> ast.parse), add the optional group support and do it *right*, rather
> than trying to squeeze it in as a new public API during the beta
> period, which may lock us in to supporting an introspection API we
> later regret.
I agree. What we can do with the API we have already is a great advance.
Terry Jan Reedy
More information about the Python-Dev