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
Argument Clinic: char convertor should use default values of type bytes #64503
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=Noneclosed_at=<Date2018-10-12.13:06:22.204>created_at=<Date2014-01-19.15:51:05.603>labels= ['type-bug', '3.8', 'expert-argument-clinic', 'build']
title='Argument Clinic: char convertor should use default values of type bytes'updated_at=<Date2018-10-12.13:06:22.195>user='https://github.com/taleinat'
For example, in Object/stringlib/transmogrify.h, the methods ljust and rjust have an argument named fillchar of type char. It's Python default value should be b' ', but the only way I've found to do that is by setting py_default = b' '.
Additionally, the char converter doesn't create valid c defaults. For example, I got " " instead of ' ' for fillchar, which has type char, so I had to manually set c_default = "' '".
Activity
taleinat commentedon Jan 19, 2014
For example, in
Object/stringlib/transmogrify.h, the methodsljustandrjusthave an argument namedfillcharof type char. It's Python default value should be b' ', but the only way I've found to do that is by settingpy_default = b' '.taleinat commentedon Jan 19, 2014
Additionally, the char converter doesn't create valid c defaults. For example, I got " " instead of ' ' for fillchar, which has type char, so I had to manually set c_default = "' '".
taleinat commentedon Jul 1, 2018
See PR #52287, which fixes this in order to AC convert Objects/stringlib/transmogrify.h.
taleinat commentedon Oct 12, 2018
This was fixed in PR #52287.