summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-12-31 19:08:03 (GMT)
committerGitHub <noreply@github.com>2020-12-31 19:08:03 (GMT)
commita6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 (patch)
treeff4b91c03c527e62efe1c41271b0a3c8395f7ffe /Misc/NEWS.d/next/Library
parentdfdca85dfa64e72df385b3a486f85b773fc0f135 (diff)
downloadcpython-a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743.zip
cpython-a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743.tar.gz
cpython-a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743.tar.bz2
bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (#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 <storchaka@gmail.com> * import pickle * Fix equality test after pickling. * Simply rely on __reduce__ for pickling. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r--Misc/NEWS.d/next/Library/2020-10-29-09-22-56.bpo-42163.O4VcCY.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-10-29-09-22-56.bpo-42163.O4VcCY.rst b/Misc/NEWS.d/next/Library/2020-10-29-09-22-56.bpo-42163.O4VcCY.rst
new file mode 100644
index 0000000..0c357eb
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-10-29-09-22-56.bpo-42163.O4VcCY.rst
@@ -0,0 +1 @@
+Restore compatibility for ``uname_result`` around deepcopy and _replace.