Larry Hastings added the comment:

Here's an updated patch.  I tried to "do it right" which wound up being a huge 
amount of work in Clinic.  The actual change to inspect.Signature was really 
easy, once I understood everything.

The churn in the .c files is because Clinic now uses the self converter's type 
for the parsing function, and (obviously) because it's now generating "self" in 
the signatures as appropriate.

Fun trivia: the "self" parameter to a builtin is always a positional-only 
parameter, even if all other argument processing for the function is 
PyArg_ParseTupleAndKeywords.  I think this patch marks the first time 
inspect.Signature will ever mark a parameter as positional-only!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20189>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to