Skip to content

Commit 3aa4b83

Browse files
authored
gh-89159: Document missing TarInfo members (#91564)
1 parent 3c19ee0 commit 3aa4b83

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

840+
.. attribute:: TarInfo.chksum
841+
842+
Header checksum.
843+
844+
845+
.. attribute:: TarInfo.devmajor
846+
847+
Device major number.
848+
849+
850+
.. attribute:: TarInfo.devminor
851+
852+
Device minor number.
853+
854+
855+
.. attribute:: TarInfo.offset
856+
857+
The tar header starts here.
858+
859+
860+
.. attribute:: TarInfo.offset_data
861+
862+
The file's data starts here.
863+
864+
865+
.. attribute:: TarInfo.sparse
866+
867+
Sparse member information.
868+
869+
840870
.. attribute:: TarInfo.pax_headers
841871
:type: dict
842872

0 commit comments

Comments
 (0)