summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorpan324 <103143968+pan324@users.noreply.github.com>2024-03-04 13:26:32 (GMT)
committerGitHub <noreply@github.com>2024-03-04 13:26:32 (GMT)
commit0dfa7ce346ac003475aa45d25c76b13081b81217 (patch)
treeef41aba86421ea3f309cda71dbf471dd32ab3707 /Misc
parentcfbdce72083fca791947cbb18114115c90738d99 (diff)
downloadcpython-0dfa7ce346ac003475aa45d25c76b13081b81217.zip
cpython-0dfa7ce346ac003475aa45d25c76b13081b81217.tar.gz
cpython-0dfa7ce346ac003475aa45d25c76b13081b81217.tar.bz2
gh-115256: Remove refcycles from tarfile writing (GH-115257)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-02-10-17-18-49.gh-issue-115256.41Fy9P.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-02-10-17-18-49.gh-issue-115256.41Fy9P.rst b/Misc/NEWS.d/next/Library/2024-02-10-17-18-49.gh-issue-115256.41Fy9P.rst
new file mode 100644
index 0000000..8cde053
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-02-10-17-18-49.gh-issue-115256.41Fy9P.rst
@@ -0,0 +1,5 @@
+Added DeprecationWarning when accessing the tarfile attribute of TarInfo
+objects. The attribute is never used internally and is only attached to
+TarInfos when the tarfile is opened in write-mode, not read-mode. The
+attribute creates an unnecessary reference cycle which may cause
+corruption when not closing the handle after writing a tarfile.