Skip to content

gh-156261: Move converters used in several files to Argument Clinic - #156262

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:clinic-shared-converters
Open

gh-156261: Move converters used in several files to Argument Clinic#156262
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:clinic-shared-converters

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 23, 2026

Copy link
Copy Markdown
Member

The pid_t, Py_off_t, HANDLE, DWORD and BOOL converters were defined in 9 files, not always equivalently. The Py_off_t type and its converter function are now shared too.

DWORD in _winapi is used with bitwise=True, so that it still accepts negative values, as with the "k" format unit.

…inic

The pid_t, Py_off_t, HANDLE, DWORD and BOOL converters were defined in
9 files.  The Py_off_t type and its converter function are now shared too.
DWORD in _winapi is used with bitwise=True to keep accepting negative
values.

The pid_t converter is now used for the pid parameters in the
_remote_debugging module, which were declared as int.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant