Tal Einat added the comment: Attaching a straight-forward patch, adding an optional 'c_name' parameter to CConvertor. When given it is used for the name of the C variable. It is also used for the '_length' variable names (when used).
This works for my use case (bytes.translate). All existing clinic tests pass. This patch doesn't include new tests. If this feature request and implementation approach are accepted, I'd be happy to add tests. ---------- keywords: +patch nosy: +larry Added file: http://bugs.python.org/file33588/clinic_allow_setting_c_variable_name.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20327> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com