GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove deprecated and unused `TarInfo.tarfile` attribute for 3.16 · Issue #149634 · python/cpython

Remove deprecated and unused TarInfo.tarfile attribute for 3.16 #149634

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove deprecated and unused TarInfo.tarfile attribute for 3.16#149634
Copy link
Assignees
sobolevn
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@sobolevn
sobolevn
opened on May 10, 2026
Issue body actions

Feature or enhancement

Refs #115256
Refs #115257

This code is scheduled to be removed in 3.16:

cpython/Lib/tarfile.py

Lines 945 to 961 in a2c1657

@property
def tarfile(self):
import warnings
warnings.warn(
'The undocumented "tarfile" attribute of TarInfo objects '
+ 'is deprecated and will be removed in Python 3.16',
DeprecationWarning, stacklevel=2)
return self._tarfile
@tarfile.setter
def tarfile(self, tarfile):
import warnings
warnings.warn(
'The undocumented "tarfile" attribute of TarInfo objects '
+ 'is deprecated and will be removed in Python 3.16',
DeprecationWarning, stacklevel=2)
self._tarfile = tarfile

Linked PRs

  • gh-149634: Remove deprecated and unused tarfile.Tarfile.tarfile attr #149635
  • gh-149634: Fix removed docs from TarFile.tarfile to TarInfo.tarfile #149680

Activity

  1. sobolevn
    self-assigned this
    on May 10, 2026
  2. sobolevn
    added
    type-featureA feature request or enhancementA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on May 10, 2026
  3. StanFromIreland
    added this to Tarfile issues 🗄️on May 10, 2026
  4. encukou
    added a commit that references this issue on May 11, 2026

    gh-149634: Remove deprecated and unused `tarfile.Tarfile.tarfile` attr (

    0108843
  5. encukou
    closed this as completedon May 11, 2026
  6. github-project-automation
    moved this to Done in Tarfile issues 🗄️on May 11, 2026
  7. zware
    changed the title [-]Remove deprecated and unused `Tarfile.tarfile` attribute for 3.16[/-] [+]Remove deprecated and unused `TarInfo.tarfile` attribute for 3.16[/+] on May 11, 2026
  8. sobolevn
    added a commit that references this issue on May 11, 2026

    gh-149634: Fix removed docs from `TarFile.tarfile` to `TarInfo.tarfil…

    6a26b78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Projects

  • Tarfile issues 🗄️
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.