This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients brett.cannon, larry, meador.inge, skrah, tim.peters, yselivanov
Date 2014-01-13.23:47:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389656852.26.0.113142790828.issue20189@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2014-01-13 23:47:32larrysetrecipients: + larry, tim.peters, brett.cannon, skrah, meador.inge, yselivanov
2014-01-13 23:47:32larrysetmessageid: <1389656852.26.0.113142790828.issue20189@psf.upfronthosting.co.za>
2014-01-13 23:47:32larrylinkissue20189 messages
2014-01-13 23:47:32larrycreate