X Tutup
The Wayback Machine - https://web.archive.org/web/20251003154030/https://github.com/python/cpython/issues/105637
Skip to content

3.12: tarfile filter DeprecationWarning should only fire if it would matter #105637

@asottile

Description

@asottile

I'm testing out the 3.12 beta and I find the warning from PEP 706 to be unactionable for most uses

I'm ok accepting the default, and I'm ok accepting the new default in 3.14 -- but my assertion is that most people don't care about explicitly setting this and that the 3.14 default will be ok. the DeprecationWarning as it is right now will generate a lot of (imo unnecessary) noise about the new feature

in my case I'm extracting tar files that I both completely trust and also would be extracted identically in the filter='data' case (which will be the default in 3.14). I really would only care about the DeprecationWarning if I were doing exceptional things or dealing with exceptional tar files

ideally it should only fire if it would alter the output or error -- otherwise it is just noise

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13bugs and security fixestype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup