Skip to content

Commit d7a544a

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

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
@@ -829,6 +829,36 @@ A ``TarInfo`` object has the following public data attributes:
829829
:meth:`~TarFile.extractall`, causing extraction to skip applying this
830830
attribute.
831831

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

0 commit comments

Comments
 (0)