[Python-Dev] Updated PEP 362 (Function Signature Object) (original) (raw)
Steven D'Aprano steve at pearwood.info
Thu Jun 7 00:27:29 CEST 2012
- Previous message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Next message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Larry Hastings wrote:
inspect.getfullargspec is currently unable to introspect builtin functions and methods. Should builtins gain a signature so they can be introspected? If function signatures are useful, then they're useful, and the implementation language for the function is irrelevant. I already sent Yuri a patch adding signature to PyCFunctionObject, which I thought he merged but I don't see in his repo.
I would love to be able to inspect builtins for their signature. I have a class decorator that needs to know the signature of the class constructor, which unfortunately falls down for the simple cases of inheriting from a builtin without a custom init or new.
-- Steven
- Previous message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Next message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]