-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-98248: Normalizing the error messages in function struct.pack #98252
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
Changes from 10 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
bbf4df4
fix wrong error messages in struct.pack
yanjs 64e17b9
📜🤖 Added by blurb_it.
blurb-it[bot] 81d0184
Merge branch 'main' into gh-98248
yanjs 18fbcbc
Provide informative error messages in struct.pack
yanjs ebfe2f0
Normalizing error messages of struct.pack
yanjs bfd4a85
Update test cases
yanjs b04dcb6
Remove some previous test methods since they are covered by new test …
yanjs c15fe13
reorder for loops
yanjs 117a158
rename a local variable
yanjs 2981e10
use subtests
yanjs ec8b417
update new test cases
yanjs 5f574e1
fix error messages for non-integral arguments
yanjs d0c000c
Merge branch 'main' into gh-98248
yanjs 06c944c
Merge branch 'main' into gh-98248
yanjs 61c016b
fix typos
yanjs 856a9be
clean the definition of RANGE_ERROR
yanjs 56dd431
Merge branch 'python:main' into gh-98248
yanjs fbea687
handle error propagation correctly
yanjs 8296a23
fix wrong issue ids
yanjs 7b3b283
minor format change
yanjs 5b6fd70
should only test cpython
yanjs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2022-10-13-22-13-54.gh-issue-98248.lwyygy.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Provide informative error messages in :func:`struct.pack` when its integral arguments are not in range. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.