Skip to content

gh-139837: document attributes of objects recorded by warnings.catch_warnings#139893

Open
Aniketsy wants to merge 2 commits intopython:mainfrom
Aniketsy:doc-warnings-warningmessage-attrs
Open

gh-139837: document attributes of objects recorded by warnings.catch_warnings#139893
Aniketsy wants to merge 2 commits intopython:mainfrom
Aniketsy:doc-warnings-warningmessage-attrs

Conversation

@Aniketsy
Copy link
Copy Markdown
Contributor

@Aniketsy Aniketsy commented Oct 10, 2025

#139837

This PR updates the documentation for :func:warnings.catch_warnings:

  • Explicitly lists the attributes guaranteed to be present on each recorded object.
  • Corrects the note to say output is suppressed to sys.stderr.

Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thankyou !


📚 Documentation preview 📚: https://cpython-previews--139893.org.readthedocs.build/

@Aniketsy
Copy link
Copy Markdown
Contributor Author

@StanFromIreland Please review these changes when you get a chance.

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news stale Stale PR or inactive for long period of time.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants