8000 gh-132305: Make Argument Clinic code compatible with Python 3.10 by serhiy-storchaka · Pull Request #132306 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132305: Make Argument Clinic code compatible with Python 3.10 #132306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Modules/_ctypes/cfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ for nbytes in 8, 16, 32, 64:
f'{sgn}{nbytes}_get_sw',
]
print(f' formattable.fmt_{sgn}{nbytes} = (struct fielddesc){{')
print(f' {', '.join(parts)} }};')
print(f' {", ".join(parts)} }};')
[python start generated code]*/
formattable.fmt_i8 = (struct fielddesc){
0, &ffi_type_sint8, i8_set, i8_get, i8_set_sw, i8_get_sw };
Expand All @@ -1498,7 +1498,7 @@ for nbytes in 8, 16, 32, 64:
0, &ffi_type_sint64, i64_set, i64_get, i64_set_sw, i64_get_sw };
formattab 5A33 le.fmt_u64 = (struct fielddesc){
0, &ffi_type_uint64, u64_set, u64_get, u64_set_sw, u64_get_sw };
/*[python end generated code: output=16806fe0ca3a9c4c input=850b8dd6388b1b10]*/
/*[python end generated code: output=16806fe0ca3a9c4c input=96348a06e575f801]*/


/* Native C integers.
Expand Down
Loading
0