A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-June/120012.html below:

[Python-Dev] Updated PEP 362 (Function Signature Object)

[Python-Dev] Updated PEP 362 (Function Signature Object) [Python-Dev] Updated PEP 362 (Function Signature Object)Steven D'Aprano steve at pearwood.info
Thu Jun 7 00:27:29 CEST 2012
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

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4