Skip to content

gh-156929: add skip_file_prefixes to warnings.deprecated - #156937

Open
flying-sheep wants to merge 4 commits into
python:mainfrom
flying-sheep:deprecated-skip_file_prefixes
Open

gh-156929: add skip_file_prefixes to warnings.deprecated#156937
flying-sheep wants to merge 4 commits into
python:mainfrom
flying-sheep:deprecated-skip_file_prefixes

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Adds a skip_file_prefixes to warnings.deprecated that forwards it to warnings.warn.

Only difference is that since @deprecated is executed ahead of time, forcing users to pass a tuple makes no sense, so we convert the input into a tuple.

@read-the-docs-community

read-the-docs-community Bot commented Sep 4, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34394534 | 📁 Comparing 9a942d0 against main (aaae15c)

  🔍 Preview build  

4 files changed
± library/difflib.html
± library/warnings.html
± whatsnew/3.16.html
± whatsnew/changelog.html

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant