-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) #23010
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
Conversation
Co-authored-by: Serhiy Storchaka <[email protected]>
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
@serhiy-storchaka Would you be willing to take another pass? |
Rather than let it go stale again, I'm just going to merge. |
@jaraco: Please replace |
Thanks @jaraco for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry @jaraco, I had trouble checking out the |
…for all but processor) (GH-23010) * Add test capturing missed expectation with uname_result._replace. * bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'. * Replace hard-coded length with one derived from the definition. * Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189). * bpo-42189: Exclude processor parameter when constructing uname_result. * In _make, rely on __new__ to strip processor. * Add blurb. * iter is not necessary here. * Rely on num_fields in __new__ * Add test for slices on uname * Add test for copy and pickle. Co-authored-by: Serhiy Storchaka <[email protected]> * import pickle * Fix equality test after pickling. * Simply rely on __reduce__ for pickling. Co-authored-by: Serhiy Storchaka <[email protected]> (cherry picked from commit a6fd0f4) Co-authored-by: Jason R. Coombs <[email protected]>
GH-24232 is a backport of this pull request to the 3.9 branch. |
…for all but processor) (GH-23010) (#24232) * Add test capturing missed expectation with uname_result._replace. * bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'. * Replace hard-coded length with one derived from the definition. * Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189). * bpo-42189: Exclude processor parameter when constructing uname_result. * In _make, rely on __new__ to strip processor. * Add blurb. * iter is not necessary here. * Rely on num_fields in __new__ * Add test for slices on uname * Add test for copy and pickle. Co-authored-by: Serhiy Storchaka <[email protected]> * import pickle * Fix equality test after pickling. * Simply rely on __reduce__ for pickling. Co-authored-by: Serhiy Storchaka <[email protected]> (cherry picked from commit a6fd0f4) Co-authored-by: Jason R. Coombs <[email protected]>
…l but processor) (python#23010) * Add test capturing missed expectation with uname_result._replace. * bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'. * Replace hard-coded length with one derived from the definition. * Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189). * bpo-42189: Exclude processor parameter when constructing uname_result. * In _make, rely on __new__ to strip processor. * Add blurb. * iter is not necessary here. * Rely on num_fields in __new__ * Add test for slices on uname * Add test for copy and pickle. Co-authored-by: Serhiy Storchaka <[email protected]> * import pickle * Fix equality test after pickling. * Simply rely on __reduce__ for pickling. Co-authored-by: Serhiy Storchaka <[email protected]>
https://bugs.python.org/issue42163
https://bugs.python.org/issue42189
https://bugs.python.org/issue42659
Automerge-Triggered-By: GH:jaraco