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.

Title: Argument Clinic doesn't support the "type" argument for the int converter
Type: compile error Stage:
Components: Build Versions: Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: larry Nosy List: brett.cannon, larry, pitrou, python-dev
Priority: critical Keywords: patch

Created on 2014-10-11 22:31 by pitrou, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit larry, 2014-10-12 03:46 review
Messages (4)
msg229107 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2014-10-11 22:31
This is on the default branch.

$ make clinic
./python -E ./Tools/clinic/ --make
Error in file "./Modules/arraymodule.c" on line 1943:
Exception raised during parsing:
Traceback (most recent call last):
  File "./Tools/clinic/", line 1626, in parse
  File "./Tools/clinic/", line 3178, in parse
  File "./Tools/clinic/", line 3660, in state_parameter
    converter = dict[name](c_name or parameter_name, parameter_name, self.function, value, **kwargs)
  File "./Tools/clinic/", line 2200, in __init__
TypeError: converter_init() got an unexpected keyword argument 'type'
make: *** [clinic] Erreur 255
msg229113 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-10-12 03:46
Patch attached.  Brett was using a feature that didn't exist, so I'm not sure how it could have worked for him.  But it was a reasonable implicit feature request, and easy to implement, so here we are.

I'm not sure what's causing the churn in "bytesobject.c" here.  It looks like someone changed the Clinic block in a way that it produces the same output, but didn't bother to run Clinic on it and check it in.
msg229237 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-10-13 09:40
New changeset c0224ff67cdd by Larry Hastings in branch 'default':
Issue #22615: Argument Clinic now supports the "type" argument for the
msg229241 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2014-10-13 12:14
Thanks, Larry!
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66805
2014-10-13 12:14:36pitrousetmessages: + msg229241
2014-10-13 09:41:09larrysetstatus: open -> closed
assignee: larry
type: compile error
resolution: fixed
2014-10-13 09:40:01python-devsetnosy: + python-dev
messages: + msg229237
2014-10-13 09:39:11larrysettitle: "make clinic" doesn't work -> Argument Clinic doesn't support the "type" argument for the int converter
2014-10-12 03:46:16larrysetfiles: +
keywords: + patch
messages: + msg229113
2014-10-11 22:31:33pitroucreate