Brett Cannon added the comment:

So at this point you should use inspect.signature(), not getfullargspec(). 

With that you could do this if you either allowed setting the __signature__ 
attribute and then provided code that would set it, made __signature__ a 
property that returned the Signature object if desired on a built-in, or come 
up with some automated way to take the argument string from PyArg_Parse() as 
you suggested.

nosy: +brett.cannon, larry

Python tracker <>
Python-bugs-list mailing list

Reply via email to