Skip to content

Commit

Permalink
gh-89159: Add some TarFile attribute types (GH-114520)
Browse files Browse the repository at this point in the history
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
  • Loading branch information
slateny authored Jan 29, 2024
1 parent a16a9f9 commit d7d0d13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/tarfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ be finalized; only the internally used file object will be closed. See the


.. attribute:: TarFile.pax_headers
:type: dict

A dictionary containing key-value pairs of pax global headers.

Expand Down Expand Up @@ -838,26 +839,31 @@ A ``TarInfo`` object has the following public data attributes:
attribute.

.. attribute:: TarInfo.chksum
:type: int

Header checksum.


.. attribute:: TarInfo.devmajor
:type: int

Device major number.


.. attribute:: TarInfo.devminor
:type: int

Device minor number.


.. attribute:: TarInfo.offset
:type: int

The tar header starts here.


.. attribute:: TarInfo.offset_data
:type: int

The file's data starts here.

Expand Down

0 comments on commit d7d0d13

Please sign in to comment.