[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

Nick Coghlan report at bugs.python.org
Mon Jan 27 08:35:37 CET 2014


Nick Coghlan added the comment:

Assigning to myself to make it clear that bltinmodule is the only part of this still under consideration for 3.4.

The test_pydoc and test_gdb failures pointed to real issues with the previous patch:

- the pydoc errors themselves were incidental, indicating that I had added doctests to chr and ord. However, those new doctests used a Unicode character in a C string, which seems like a recipe for portability trouble. I took those doctests out again, and updated the prose docs instead. I like my obscure multilingual Monty Python reference and would like to keep it now I thought of it :)

- the gdb error suggests that gdb is relying on being able to find builtin_id based on its exact signature, including the parameter names. Rather than trying to figure out the full details of that, I've instead partially reverted its conversion to Argument Clinic by disabling the input block and restoring the old parameter names in the function signature. We can change it back to full conversion for 3.5, after AC has the ability to use different names in the Python signature and in the C implementation function.

This does mean we'll want to update the signature by hand once you merge the patch changing the indicators that argument clinic is looking for.

----------
assignee:  -> ncoghlan
Added file: http://bugs.python.org/file33740/issue20184_builtin_conversion_v3.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20184>
_______________________________________


More information about the Python-bugs-list mailing list