Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jan 15, 2026

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

@serhiy-storchaka serhiy-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-storchaka serhiy-storchaka merged commit 780e969 into python:main Jan 16, 2026
45 checks passed
@serhiy-storchaka serhiy-storchaka deleted the struct-clinic branch January 16, 2026 11:35
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.

2 participants