Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commented Jan 15, 2026

@serhiy-storchakaserhiy-storchaka changed the title gh-143856: Finish conversion of the struct module to Argument Clinicgh-143672: Finish conversion of the struct module to Argument ClinicJan 15, 2026
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Copy link
MemberAuthor

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated docstrings. Please look if I missed something.

Struct.pack_into
buffer: Py_buffer(accept={rwbuffer})
offset as offset_obj: object
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should deprecate IndexError. OverflowError will be more meaningful here for, well, an overflow condition.

@serhiy-storchakaserhiy-storchaka merged commit 780e969 into python:mainJan 16, 2026
45 checks passed
@serhiy-storchakaserhiy-storchaka deleted the struct-clinic branch January 16, 2026 11:35
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@serhiy-storchaka@skirpichev