You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Write PyArg_Parse* format in a line with a function #68195
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2015-04-23.21:41:55.626>created_at=<Date2015-04-19.18:30:47.696>labels= ['type-feature', 'expert-argument-clinic']
title='Write PyArg_Parse* format in a line with a function'updated_at=<Date2015-04-23.21:41:55.625>user='https://github.com/serhiy-storchaka'
Proposed patch makes Argument Clinic to output format argument of PyArg_Parse, PyArg_ParseTuple and PyArg_ParseTupleAndKeywords in a line with a function itself. First, this makes generated code more compact and easier to read and compare with old code. Second, it makes easier to grep sources for used format units. Format argument always (or almost always) is written in a line with a function.
Actually it is not hard to me to apply the patch locally and regenerate clinic output if I need it. I propose this patch for mainstream only because think that it can be helpful for someone other. Thanks to moving all generated code into separated files, the code churn does not harm.
Activity
serhiy-storchaka commentedon Apr 19, 2015
Proposed patch makes Argument Clinic to output format argument of PyArg_Parse, PyArg_ParseTuple and PyArg_ParseTupleAndKeywords in a line with a function itself. First, this makes generated code more compact and easier to read and compare with old code. Second, it makes easier to grep sources for used format units. Format argument always (or almost always) is written in a line with a function.
larryhastings commentedon Apr 19, 2015
I don't care about this, but the patch looks fine. If this really helps then LGTM.
Please hold off checking this in until after 3.5.0 alpha 4 is released.
serhiy-storchaka commentedon Apr 20, 2015
Actually it is not hard to me to apply the patch locally and regenerate clinic output if I need it. I propose this patch for mainstream only because think that it can be helpful for someone other. Thanks to moving all generated code into separated files, the code churn does not harm.
python-dev commentedon Apr 23, 2015
New changeset 151cab576cab by Serhiy Storchaka in branch 'default':
Issue bpo-24007: Argument Clinic now writes the format of PyArg_Parse*() at the
https://hg.python.org/cpython/rev/151cab576cab