]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-89159: Document missing TarInfo members (GH-91564) (#114007)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Jan 2024 23:26:03 +0000 (00:26 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 23:26:03 +0000 (23:26 +0000)
gh-89159: Document missing TarInfo members (GH-91564)
(cherry picked from commit 3aa4b839e4aa01d4e8bc5c7685fd0eb17c4609b8)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Doc/library/tarfile.rst

index dadbc6ea87f8433ea4a52f2220722fe83934e241..cd2df3e69e3729f8fd7c4983be0d5cc687676aaa 100644 (file)
@@ -829,6 +829,36 @@ A ``TarInfo`` object has the following public data attributes:
       :meth:`~TarFile.extractall`, causing extraction to skip applying this
       attribute.
 
+.. attribute:: TarInfo.chksum
+
+   Header checksum.
+
+
+.. attribute:: TarInfo.devmajor
+
+   Device major number.
+
+
+.. attribute:: TarInfo.devminor
+
+   Device minor number.
+
+
+.. attribute:: TarInfo.offset
+
+   The tar header starts here.
+
+
+.. attribute:: TarInfo.offset_data
+
+   The file's data starts here.
+
+
+.. attribute:: TarInfo.sparse
+
+   Sparse member information.
+
+
 .. attribute:: TarInfo.pax_headers
    :type: dict