-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-64490: Fix bugs in argument clinic varargs processing #32092
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
erlend-aasland
merged 28 commits into
python:main
from
colorfulappl:unpack_keywords_bugfix
Nov 24, 2022
Merged
Changes from 19 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
6793f38
Fix a bug which allows more than one varargs
colorfulappl 6203962
Fix an array index out-of-bound bug
colorfulappl 03be6f9
Fix a kwarg parse bug
colorfulappl cefe5e9
Merge branch 'main' into unpack_keywords_bugfix
colorfulappl 45bde03
Regenerate clinic.test
colorfulappl bfc5241
Replace `pre_buffer` to a more descriptive name `nargs`
colorfulappl 0b1523c
📜🤖 Added by blurb_it.
blurb-it[bot] 411ad37
Replace inline literals with double backticks in news
colorfulappl c6a5171
Rename news
colorfulappl 42f9273
Merge branch 'main' into unpack_keywords_bugfix
colorfulappl 7fdd501
Simplify news
colorfulappl 0aa4be4
Regenerate clinic.test
colorfulappl bbad2bb
Add test "allow no more than one vararg"
colorfulappl f7b6662
Merge branch 'main' into unpack_keywords_bugfix
colorfulappl 4fb66ab
Regenerate clinic.test
colorfulappl 8f11765
Modify news
colorfulappl de5b2a4
Update 2022-08-11-09-58-15.gh-issue-64490.PjwhM4.rst
erlend-aasland 85f98ca
Sphinx syntax/format fix
10000
erlend-aasland 58a3da5
Missing blank line
erlend-aasland 0afce9d
Merge branch 'main' into unpack_keywords_bugfix
colorfulappl 87314ff
Add Argument Clinic functional test cases
colorfulappl a48971d
Fix bug
colorfulappl e6a4e13
Do not generate unused `noptargs`
colorfulappl 8592676
Update news
colorfulappl 4c682bf
Update Lib/test/clinic.test
colorfulappl c3d6b73
Delete unnecessary function doc
colorfulappl 8b26eb8
Merge branch 'main' into unpack_keywords_bugfix
colorfulappl 3f88c54
Rerun make clinic
colorfulappl 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
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
6 changes: 6 additions & 0 deletions
6
Misc/NEWS.d/next/Tools-Demos/2022-08-11-09-58-15.gh-issue-64490.PjwhM4.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,6 @@ | ||
Argument Clinic varargs bugfixes | ||
|
||
* Fix out-of-bounds error in :c:func:`!_PyArg_UnpackKeywordsWithVararg`. | ||
* Fix incorrect check which allowed more than one varargs in clinic.py. | ||
* Fix miscalculation of ``noptargs`` in generated code. | ||
|
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
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.