Skip to content

Commit 1ea6658

Browse files
[3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006)
gh-89159: Document missing TarInfo members (GH-91564) (cherry picked from commit 3aa4b83) Co-authored-by: Stanley <[email protected]>
1 parent d577225 commit 1ea6658

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Doc/library/tarfile.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,36 @@ A ``TarInfo`` object has the following public data attributes:
832832
:meth:`~TarFile.extractall`, causing extraction to skip applying this
833833
attribute.
834834

835+
.. attribute:: TarInfo.chksum
836+
837+
Header checksum.
838+
839+
840+
.. attribute:: TarInfo.devmajor
841+
842+
Device major number.
843+
844+
845+
.. attribute:: TarInfo.devminor
846+
847+
Device minor number.
848+
849+
850+
.. attribute:: TarInfo.offset
851+
852+
The tar header starts here.
853+
854+
855+
.. attribute:: TarInfo.offset_data
856+
857+
The file's data starts here.
858+
859+
860+
.. attribute:: TarInfo.sparse
861+
862+
Sparse member information.
863+
864+
835865
.. attribute:: TarInfo.pax_headers
836866
:type: dict
837867

0 commit comments

Comments
 (0)