]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98248: Normalizing the error messages in function struct.pack (GH-98252)
authorFelix Ye <29754475+yanjs@users.noreply.github.com>
Sun, 4 Dec 2022 20:24:18 +0000 (15:24 -0500)
committerGitHub <noreply@github.com>
Sun, 4 Dec 2022 20:24:18 +0000 (20:24 +0000)
commit854a878e4f09cd961ba5135567f7a5b5f86d7be9
tree54d0053f6bf8e99aec904c22ef34e58276d1c700
parent2ae894b6d1995a3b9f95f4a82eec6dedd3ba5298
gh-98248: Normalizing the error messages in function struct.pack (GH-98252)

Provide consistent and informative error messages in function struct.pack when its integral arguments are not in range.
Lib/test/test_struct.py
Misc/NEWS.d/next/Library/2022-10-13-22-13-54.gh-issue-98248.lwyygy.rst [new file with mode: 0644]
Modules/_struct.c