FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add more examples in the `warnings` docs · Issue #93343 · python/cpython · GitHub

Repository navigation

Add more examples in the warnings docs #93343

Open

Description

This is a follow-up of GH-86438 and GH-23172. The warnings docs should include more examples to show how to match different types of warnings using both the provided functions and -W/PYTHONWARNINGS, especially since they behave differently.

At the bottom of pytest-dev/pytest#8759 (comment) there are already some examples to illustrate some of the differences, even though some are specific to pytest.

Linked PRs

Activity

  1. added
    docsDocumentation in the Doc dir
    3.11only security fixes
    3.12only security fixes
    on May 30, 2022
  2. Jamesgo1 commented on Dec 23, 2022

    Hi there, first time contributor here. I'd be happy to attempt this if that would be OK?

  3. hugovk commented on Dec 27, 2022

    Member

    @Jamesgo1 Hi, that would be great, thanks!

    See https://devguide.python.org for info about building docs and contributing PRs, and also feel free to ask here too.

  4. liam-gersten commented on Apr 17, 2023

    Contributor

    Hello, my name is Liam, and I’m part of a student software engineer group of 4 at Carnegie Mellon. We’ve been tasked with contributing to an open source project, and this issue seems like a great first start. Would you mind assigning this to me (my group)? Also, you might see the same comment on 1-2 other issues, since we’ll likely be working on more than just one for our assignment.

  5. hugovk commented on Apr 18, 2023

    Member

    Hi Liam and your group! Sounds great!

    We don't usually assign issues, because sometimes people don't get around to making PRs for a wide variety of reasons, and we don't want others to think they've been pre-booked.

    Instead, please go ahead with it, and don't hesitate to ask questions :)

  6. added 3 commits that reference this issue on Jul 10, 2023
  7. 3 remaining items

  8. added a commit that references this issue on Jul 12, 2023
  9. vaishnavi192 commented on Dec 22, 2023

    Contributor

    @daniel-shimon is this issue still open to work on or you have created a PR so it's closed now? @hugovk

  10. mirelagrigoras commented on Jul 14, 2024

    Contributor

    Hello! EuroPython 2024 - Sprints attendee here :) If this is still open, can I take it?

  11. hugovk commented on Jul 14, 2024

    Member

    @mirelagrigoras Hello! This issue already has a PR, although it's been open for a year. I'll give a ping on the PR, although I doubt we'll get an answer during today's sprint, so I suggest finding another issue. Thanks!

  12. removed
    3.11only security fixes
    3.12only security fixes
    on Mar 1, 2025
  13. Yashp002 commented on Nov 15, 2025

    Contributor

    Hi! I'd like to work on this. I see #106618 is linked—is that PR still active, or can I take a fresh approach?

    If available, my plan is to:

    Add 4–5 runnable code examples showing different warning filter patterns (using functions and -W/PYTHONWARNINGS)

    Reference the pytest examples mentioned and adapt them for general use

    Update Doc/library/warnings.rst with clear, tested examples

    ETA: 2–3 days if this is still open. Thanks!

  14. picnixz commented on Nov 15, 2025

    Member

    is that PR still active, or can I take a fresh approach

    I don't think there is any new approach to take as the author addressed comments and we still need to review them. Also it was still active some months ago which is fine for a PR here IMO.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL