Skip to content

Commit

Permalink
pythongh-89159: Add some TarFile attribute types (pythonGH-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 and aisk committed Feb 11, 2024
1 parent 534119a commit 5e8e43c
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 5e8e43c

Please sign in to comment.