-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-110222: Add support of PyStructSequence in copy.replace() #110223
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
serhiy-storchaka
merged 30 commits into
python:main
from
XuehaiPan:copy-replace-structseq
Oct 4, 2023
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6af4757
Add support of PyStructSequence in copy.replace()
XuehaiPan 1960d8d
Correct error message for `namedtuple._replace`
XuehaiPan 5ee97a8
📜🤖 Added by blurb_it.
blurb-it[bot] e8e6be4
Add test for `copy.replace()` for struct sequence objects
XuehaiPan 43324a4
Move test for `copy.replace(structseq)` to test_structseq.py
XuehaiPan 9e6cd98
Fix refcnt for temp variables
XuehaiPan 350a3d0
Change copy.replace() to raise TypeError for unkown fields for named …
XuehaiPan c4655ca
Make copy.replace() to raise TypeError for PyStructSequence with unna…
XuehaiPan a9dba93
Revert copy.replace() to raise ValueError for unkown fields for named…
XuehaiPan 83fd01b
Change comment in tests
XuehaiPan 73e5e65
Add more tests for PyStructSequence with invisible fields
XuehaiPan 7abaf64
Change test function names to match code style
XuehaiPan 26eedbc
Refactor implementation with copy and replacement
XuehaiPan d74b449
Fix missing assertHasAttr
XuehaiPan 5186c35
Fix test cases
XuehaiPan 0f74efa
Fix error handling
XuehaiPan 43a81b0
Remove unused variable
XuehaiPan d90e5ae
Cast return type to `PyObject*`
XuehaiPan 287f8b0
Merge branch 'main' into copy-replace-structseq
XuehaiPan 5722773
Update news entry
XuehaiPan c23165b
Prefer ++i over i++
XuehaiPan 38f331b
Limit the length of typename to 500 in error message
XuehaiPan 30758ba
Merge branch 'main' into copy-replace-structseq
XuehaiPan 2a6259c
Prefer PyDict_GET_SIZE over PyDict_Size
XuehaiPan a6b0292
Apply suggestions from code review
XuehaiPan d76bb4e
Apply suggestions from code review
XuehaiPan 3ae391f
Update test code style
XuehaiPan 3664109
Merge branch 'main' into copy-replace-structseq
XuehaiPan 4a606ad
Apply suggestions from code review
serhiy-storchaka 8504345
Merge branch 'main' into copy-replace-structseq
XuehaiPan 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
Revert copy.replace() to raise ValueError for unkown fields for named…
…tuples
- Loading branch information
commit a9dba93357e583b4c9bcc2832a73683b7c31b417
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
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.