gh-78724: raise RuntimeError's when calling methods on non-ready Struct()'s by skirpichev · Pull Request #143643 · python/cpython

added 5 commits

January 3, 2026 10:36
Now modification of the Struct() while packing trigger a RuntimeError
…y Struct()'s

Calling the ``Struct.__new__()`` dunder without required argument now is
deprecated.  Calling the ``Struct.__init__()`` dunder method on
initialized object now also is deprecated.

serhiy-storchaka

@skirpichev

@skirpichev

serhiy-storchaka

@skirpichev

serhiy-storchaka

@skirpichev

serhiy-storchaka

@skirpichev

@skirpichev

serhiy-storchaka

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jan 11, 2026
…y Struct()'s (pythonGH-143643)

(cherry picked from commit 515ae40)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>

reidenong pushed a commit to reidenong/cpython that referenced this pull request

Jan 12, 2026

thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request

Feb 15, 2026